mevdschee / mevdschee/php-crud-api

Specify options for database connection in configuration

Open
#923 2 comments 0 reactions 1 assignee View on GitHub

@mevdschee is already working on this.

Since Oct 21, 2022.

enhancement
Dominant language
PHP
Stars
3.7k
Forks
1k
Avg merge
1h 55m
Merged PRs (30d)
7

Description

Hello.

I want connect php-crud-api on MariaDB who accepts TLS connections only.
It's work if, in PHP code, I modify the function "getOptions" for adding those lines in mysql options block :

\PDO::MYSQL_ATTR_SSL_CAPATH => '/etc/ssl/certs',
\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => true,

There is a way to specify options for database connection in configuration ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.