├── .env.example ├── .gitignore ├── LICENSE ├── README.md ├── app ├── Actions │ └── Users │ │ ├── Create.php │ │ ├── Delete.php │ │ ├── GetAll.php │ │ ├── Show.php │ │ └── Update.php ├── Constants │ └── GeneralConstant.php ├── Controllers │ └── UserController.php ├── Database │ └── Database.php ├── Helpers │ └── functions.php ├── Models │ └── User.php └── Traits │ └── ApiResponse.php ├── composer.json ├── composer.lock ├── config └── database.php ├── database └── migrations │ └── 20250118203458_create_users_table.php ├── phinx.php ├── public ├── index.php └── messages.json └── routes └── api.php /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | /.idea 3 | /.vscode 4 | *.DS_Store 5 | .env -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/README.md -------------------------------------------------------------------------------- /app/Actions/Users/Create.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Actions/Users/Create.php -------------------------------------------------------------------------------- /app/Actions/Users/Delete.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Actions/Users/Delete.php -------------------------------------------------------------------------------- /app/Actions/Users/GetAll.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Actions/Users/GetAll.php -------------------------------------------------------------------------------- /app/Actions/Users/Show.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Actions/Users/Show.php -------------------------------------------------------------------------------- /app/Actions/Users/Update.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Actions/Users/Update.php -------------------------------------------------------------------------------- /app/Constants/GeneralConstant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Constants/GeneralConstant.php -------------------------------------------------------------------------------- /app/Controllers/UserController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Controllers/UserController.php -------------------------------------------------------------------------------- /app/Database/Database.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Database/Database.php -------------------------------------------------------------------------------- /app/Helpers/functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Helpers/functions.php -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Models/User.php -------------------------------------------------------------------------------- /app/Traits/ApiResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/app/Traits/ApiResponse.php -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/composer.lock -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/config/database.php -------------------------------------------------------------------------------- /database/migrations/20250118203458_create_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/database/migrations/20250118203458_create_users_table.php -------------------------------------------------------------------------------- /phinx.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/phinx.php -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/public/index.php -------------------------------------------------------------------------------- /public/messages.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/public/messages.json -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soheilkhaledabdi/php-crud-api-flight/HEAD/routes/api.php --------------------------------------------------------------------------------