A Laravel 13 CRUD API starter on PHP 8.4 that stores one resource, items, in PostgreSQL through Eloquent, served by Apache from a Dockerfile. It is for PHP developers who want Laravel's API routes only, with no sessions, cookies, views or APP_KEY, and validation, JSON errors, limit and offset paging, a database health check and tests already written.
by Light CloudCRUD APIs
config/database.php builds Laravel's pgsql connection from DB_HOST, DB_NAME, DB_USER, DB_PASSWORD and DB_SSLMODE, and the API only uses the api middleware group, so nothing is encrypted and no APP_KEY is needed until you add web routes or Crypt calls. The first change is usually renaming Item or giving it your own fields: add a migration, update the model and ItemController, and the container applies the migration on the next deploy. Each start runs php artisan migrate --force before Apache, so an unreachable database stops the app from starting; if two instances start together on a new migration, both can try it and one fails, then restarts and finds nothing left to migrate. There is no authentication or rate limiting, so every endpoint is open to anyone with the URL until you add tokens, for example with Laravel Sanctum. Unlike the Rails version it serves no OpenAPI document, matching the Flask and Express APIs.
config/database.php reads DB_HOST (with an optional :port), DB_NAME, DB_USER, DB_PASSWORD and DB_SSLMODE and builds Laravel's pgsql connection from them. DB_SSLMODE=require turns on TLS without checking the certificate.
Not this one. It only uses the api middleware group, which has no sessions or encrypted cookies, so nothing is encrypted. Add APP_KEY if you add web routes or Crypt calls.
Add a migration, a model and a controller modelled on ItemController, then its routes in routes/api.php. Run php artisan migrate locally; the container applies it on the next deploy.
No. It is plain JSON. Packages such as dedoc/scramble generate an OpenAPI document and a docs page from the routes and controllers.
Yes. Any Docker host builds the Dockerfile as it is, and any PHP 8.3+ web server pointed at public/ runs it after composer install --no-dev and php artisan migrate --force, with the DB_* variables set.


Start a Laravel app with sign-up and password reset on PostgreSQL, without a starter kit
Start a Rails 8 CRUD API on PostgreSQL with validation, OpenAPI and Minitest set up
Start a PHP JSON API on Slim 4 without the weight of a full framework