Skip to content
/ slim Public template

Use prototyped framework as you like

License

Notifications You must be signed in to change notification settings

Cvar1984/slim

Repository files navigation

Slim 4 skeleton

CodeFactor PHP Composer License

install to webroot

clone to your htdocs

git clone <link>

move everything to /var/www/html (webroot)

then go to /var/www/html and install depencies

composer install --no-dev
yarn install

edit /var/www/html/app/container.php

comment this

// $app->setBasepath();

start your webservice like apache or something like

php -S 127.0.0.1:8080 -t /var/www/html/public

install to webroot/custom

clone to your htdocs

git clone <link>

move everything to /var/www/html/custom (webroot)

then go to /var/www/html/custom and install depencies

composer install --no-dev
yarn install

edit /var/www/html/app/container.php do this

$app->setBasepath('/custom');

start your webservice like apache or something like

php -S 127.0.0.1:8080 -t /var/www/html/custom/public

Public directory

public/
|-- assets
|   `-- local
|       |-- images
|       |-- audio
|       |-- video
|       `-- cache
`-- index.php

Where you connect front-end & back-end

src/
`-- Controller
    |-- BlogController.php
    |-- HomeController.php
    |-- NotFoundController.php
    `-- Middleware -> Local middleware
        |-- NotFoundMiddleware.php
        `-- DatabaseMiddleware.php

Where your setup framework

config/
|-- bootstrap.php
|-- container.php
|-- middleware.php
|-- routes.php
`-- settings.php

Where front-end do their job

templates/
|-- assets
|   `-- local
|       |-- js
|       `-- css
|-- blog.html.twig
|-- footer.html.twig
|-- header.html.twig
`-- home.html.twig

Releases

No releases published

Sponsor this project

Packages

No packages published