Eacode Kernel is a lightweight PHP micro kernel based on Slim 4. It provides a minimal HTTP bootstrap, simple controllers, and a tiny migration runner for MariaDB.
- PHP 8.2+
- Docker + Docker Compose (recommended for local development)
docker compose up -d --buildOpen:
http://localhost:8181/test→OKhttp://localhost:8181/test/db/1→ JSON row fromtest_itemshttp://localhost:8181/api/ping→pong
The web container connects to MariaDB using environment variables from docker-compose.yml:
- DB name:
eak - user:
user - password:
qwerty
Run migrations manually (inside container or locally with env vars):
php bin/migrate.phpCommon developer commands are available via make:
make up
make down
make restart
make migrate
make logs
make shellpublic/front controller (index.php) and rewrite rulesconfig/routes, DI container, DB settingssrc/controllers, API handlers, models, repositoriesdb/migrations/SQL migrations
You can use this repository as a project skeleton:
git clone https://github.com/eliasadvansys/eacode-kernel.git my-new-project
cd my-new-project
git remote remove origin
git remote add origin <new-repo-url>Then update:
composer.jsonname/description/homepageconfig/routes.php(remove test routes you do not need)db/migrations/(remove test migration if not needed)docker-compose.ymldatabase settings
MIT. Slim and its dependencies remain under their respective licenses.