DownloadPHP low code API generator
This is a light & easy low code API generator using configuration arrays. It can be used to create API's in very short time once you are done with your database.
Configuration Rules
JavaScript Examples
Sql File
-
Sql/global.sql Import this Sql file on your MySql global instance
-
Sql/customer\_master.sql Import this Sql file on your MySql customer instance
-
Note: One can import both sql's in a single database to start with. Just configure the same detail in the environment files.
folders
Openswoole
-
openswoole_html folder for Openswoole based application start files.
File folder
-
Log folder for application Log.
-
TestCase folder for Test Cases
www folder
-
Config Basic configuration folder
-
Hook Hook.
-
public\_html Contains index.php file.
-
Supplement Customised coding for APIs
-
Validation Contains validation classes.
www/Supplement code folder
-
Crons Contains classes for cron API's
-
Custom Contains classes for custom API's
-
Dropbox Contains classes for third-party API's
-
LegacyCode Contains classes for third-party API's
-
ThirdParty Contains classes for third-party API's
-
Upload Contains classes for upload file API's
Route folder
www/Config//<CustomerFoldername>/<mode>/Route
-
/Config/<CustomerFoldername>/Private/Route/<GroupName>/DataModification
-
/Config/<CustomerFoldername>/Private/Route/<GroupName>/DataRetrival
-
/Config/<CustomerFoldername>/Public/Route//DataModification
-
/Config/<CustomerFoldername>/Public/Route//DataRetrival
-
<GroupName> is the group user belongs to for accessing the API's
File
-
/GETroutes.php for all GET method routes configuration.
-
/POSTroutes.php for all POST method routes configuration.
-
/PUTroutes.php for all PUT method routes configuration.
-
/PATCHroutes.php for all PATCH method routes configuration.
-
/DELETEroutes.php for all DELETE method routes configuration.
Sql folder
These files locations are used in routes config to be used for generating response.
www//Config/<CustomerFoldername>/Private/Sql
-
/Config//<CustomerFoldername>/<mode>/Sql/DataModification
-
/Config//<CustomerFoldername>/<mode>/Sql/DataRetrival
File
-
/GET/<filenames>.php GET method Sql.
-
/POST/<filenames>;.php POST method Sql.
-
/PUT/<filenames>.php PUT method Sql.
-
/PATCH/<filenames>.php PATCH method Sql.
-
/DELETE/<filenames>.php DELETE method Sql.
One can replace <filenames> tag with desired name as per functionality.
Setting route CIDR
Below are route level CIDR settings for a set of system routes (starting / ending with)
`customer`.`customer_cron_cidr` VARCHAR(250) DEFAULT NULL
`customer`.`customer_custom_cidr` VARCHAR(250) DEFAULT NULL
`customer`.`customer_dropbox_cidr` VARCHAR(250) DEFAULT NULL
`customer`.`customer_explain_cidr` VARCHAR(250) DEFAULT NULL
`customer`.`customer_export_cidr` VARCHAR(250) DEFAULT NULL
`customer`.`customer_import_sample_cidr` VARCHAR(250) DEFAULT NULL
`customer`.`customer_import_cidr` VARCHAR(250) DEFAULT NULL
`customer`.`customer_reload_cidr` VARCHAR(250) DEFAULT NULL
`customer`.`customer_routes_cidr` VARCHAR(250) DEFAULT NULL
`customer`.`customer_thirdparty_cidr` VARCHAR(250) DEFAULT NULL
`customer`.`customer_upload_cidr` VARCHAR(250) DEFAULT NULL
Configuring in Database Tables
To enable CIDR settings at Customer / Group / User level one can set them in respective table and record
-- Customer level
`customer`.`customer_cidr` VARCHAR(250) DEFAULT NULL,
-- Group level
`group`.`customer_user_group_cidr` VARCHAR(250) DEFAULT NULL,
-- User level
`user`.`customer_user_cidr` VARCHAR(250) DEFAULT NULL,
Contributing
Issues and feature request are welcome.<br />
Feel free to share them on issues page
Author
-
Ramesh N. Jangid (Sharma)
Github: @shames11
License
Copyright © 2026 Ramesh N. Jangid (Sharma).<br />
This project is MIT licensed.
|