A template for web development with Slim, Inertia and Svelte
git clone https://github.com/chitholian/slim-inertia-svelte
.cd slim-inertia-svelte
.composer install
.yarn
.yarn build
. You can use --mode=production
.app/config.php
file and set database credentials.php app/CLI/db.php -m
. See bellow for more about migrations.PHP
Built-in web server: php -S 127.0.0.1:8000 -t public/
.admin
, password: admin
.PHP
server: php -S 127.0.0.1:8000 -t public/
.yarn serve
.No ORM
library is used, a very simple migration system is provided.
Migration files are created inside app/Database/Migrations
directory.
php app/CLI/db.php -c "Your Migration Name"
.php app/CLI/db.php -m
.php app/CLI/db.php -r
.php app/CLI/db.php -t
.PHP v7.4+
.Composer
.NodeJS
with yarn
.PHP
extensions: json, openssl, pdo, gd
.CSRF
protection is implemented yet.middleware
for CSRF
protection.httponly, samesite=Strict
.