php-crud-api
php-crud-api copied to clipboard
Single file PHP script that adds a REST API to a SQL database
My latest project uses Firebase authentication for token issuing. The token doesn't contain any information regarding e.g. user's role or permissions. The MySQL database however contains a table 'Users' which...
There's probably no particular reason that middleware and other config options are case-sensitive. I think it would be easier for inexperienced users, if this was made case-insensitive, as it might...
my users table name: users config: tables' => 'product,manufacturer,category', blocking acces // Authorization 'authorization.tableHandler' => function ($operation, $tableName) { return $tableName != 'users'; }, and response {"code":9999,"message":"SQLSTATE[42000]: Syntax error or...
I want to share my custom controller to add the api to upload files of any type. you can use this API `http://localhost:8080/api.php/upload` with the POST method to send your...
Add function support in SELECT query: SELECT COUNT(*) AS C FROM ATABLE https://127.0.0.1/api.php/records/mytest/?include=count(*)%20AS%20c
I am very happy to see such a good product, I want to know when your code can support the oracle database.
Hi, in the dbAuth middleware, do you think it would be possible to add the email verification and password reset process? Before a user is effectively registered, he must click...
I have a `questions` table and an `answers` table. the `answers` table has a foreignKey field named `questionUuid` related to the field `uuid` (not related to the id field) of...
is there a way to set, in the PHPSESSID, the option SameSite to "none"? my devel db is on another machine and the browser defaults its value to SameSite="Lax", blocking...
We could support stored procedures or similarly "soft" or "fake" stored procedures, which are really SQL files on disk that will be executed on an API endpoint.