Demo implementation of pckg framework.
- See pckg/skeleton for in-depth core feature description
- Twig & Vue layout examples -
frontend.twig&frontend.vue - Homepage & Contact page -
homepage.vue&contact.vue - Vue & API routes examples -
Provider/Demo.php - Asset registration -
Demo.php - SEO support -
Provider/Demo.php - Static storage (logo)
- Static database (Projects & Clients) + API with ORM
- Almost-zero-code Webpack & Vue setup
- Vue, Vuex, VueRouter, ...
Dev environment with system dependencies is available in schtr4jh/pckg:latest Docker image.
$ docker stack deploy demo-app docker-compose.yml
Install dependencies.
# composer install
# yarn install
Create static storage directories for the application.
# php console project:init
This will create the storage folder with some mandatory subfolders not included in GIT.
Open in web browser.
https://localhost:8072/
vendor,componentsandnode_modules- dependency managers directorieswww- directory that will be exposed to the internetstorage- directory for framework, cache, uploads, tmp and other private and public filesconfig- root project configurationapp/$app/config- app configurationapp/$app/src- app source filesapp/$app/public- static assets (private, can be mounted towww)
Note: it is recommended to disable discovery of dependency manager directories, www and storage.
Runs mocha + codeception tests + static code analysis.
# php console project:test