clsystems / clslim
Skeleton Framework with Slim 4, PHP-DI and Eloquent ORM. Quick setup with Robo
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.1
- ext-json: *
- ext-pdo: *
- doctrine/dbal: ^2.9.2
- illuminate/database: ^5.8.33
- league/climate: ^3.5.0
- php-di/php-di: ^6.0.9
- respect/validation: ^2.0@dev
- slim/psr7: ^0.5.0
- slim/slim: ^4.2.0
- vlucas/phpdotenv: ^3.4.0
Requires (Dev)
- consolidation/robo: 1.4.10
- phpunit/phpunit: ^8.3.4
This package is auto-updated.
Last update: 2025-03-10 17:02:44 UTC
README
For developers, CLSlim is an opinionated PHP framework used to quickly create CRUD based RESTful APIs.
CLSlim is a marriage between Slim 4 and Eloquent ORM with Robo as your wedding planner.
CLSlim is opinionated meaning that CLSlim stresses convention over configuration.
CLSlim works best as a framework in the following situation:
- You need to quickly spin up a RESTful datacentric API
- You already have defined your database with entities (tables/views) already in place
- You are just starting your project (for the backend API handler) and need to hit the ground running
Requirements
- PHP 7.1+
- MySQL 5.6+ or SQLite3 (Postgres and MSSQL should also work but are untested)
- Composer
Installation
From a terminal / command window run:
composer create-project clsystems/clslim [your-project-name]
cd [your-project-name]
// Linux / Mac users do this:
./clslim clslim:sample
// Windows execute this:
php -S localhost:8088 -t public
// Then in your favorite web browser go to: localhost:8088/v1/sample/hello-world
The result should look something like this:
{ "authenticated": true, "success": true, "status": 200, "data": { "id": "hello-world" }, "missing": [ ], "message": "Sample test", "timestamp": 1556903905 }