php-crud-api
php-crud-api copied to clipboard
Single file PHP script that adds a REST API to a SQL database
Hello I try to get the Auth0 authentification to work, but i'm stuck with a 1012 code Authentication failed for 'JWT' I've read and try several solutions from the doc,...
Hi. How can I allow guest users (so with no auth) to make a POST call to create a record on a specific table? I'd like to allow this only...
Fix for #571
Hi. I'm trying to use the sanitation.handler on /register endpoint. It's not working... seems... or I'm not using it in the correct way. This is my code: ``` 'sanitation.handler' =>...
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...
Hi all, I'd like to return a custom error message for failed authorization.tableHandler. Now it gets me "table not found" only, but I want to differentiate between several states. One...
Hi, I have the following configuration: A "Users" table with columns id, username and password (hash), tenant_id and role. The following configuration of the api.php ``` 'address' => 'db', 'username'...
Hello, I'm developing a small project with react-admin as frontend and php-crud-api as backend. I've set it up correctly and deployed. On production site it is working fine, but if...
I had an expectation that if I created a custom controller, it would automatically get picked up in OpenAPI documentation. However I don't see my custom route listed when viewing...
I'm using dbAuth for a project and one issue I encounter is that the username is not sanitized even if the sanitation middleware is active. For example, a user can...