bnowack / phue
This package is abandoned and no longer maintained.
No replacement package was suggested.
A PHP micro-framework for applications driven by Vue.js
0.27.1
2020-07-30 13:04 UTC
Requires
- doctrine/dbal: ~2.2
- silex/silex: 2.*
- symfony/security: ~3.1
- symfony/security-csrf: ~3.1
- twig/twig: 1.*
Requires (Dev)
- ext-xdebug: >=2.2.1
- phpspec/phpspec: ^6.0
- phpunit/phpunit: ^7.0
- dev-master
- 0.27.1
- 0.27.0
- 0.26.6
- 0.26.5
- 0.26.4
- 0.26.3
- 0.26.2
- 0.26.1
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.2
- 0.20.1
- 0.20.0
- 0.19.0
- 0.18.1
- 0.18.0
- 0.17.0
- 0.16.1
- 0.15.0
- 0.14.0
- 0.13.1
- 0.13.0
- 0.12.1
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.1
- 0.6.0
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.9
- 0.4.8
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-dependabot/npm_and_yarn/loader-utils-and-loader-utils-and-webpack-cli-1.4.1
- dev-dependabot/npm_and_yarn/socket.io-parser-and-karma-4.2.1
- dev-dependabot/composer/twig/twig-1.44.7
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/moment-2.29.4
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/postcss-7.0.36
- dev-dependabot/composer/symfony/security-3.4.48
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/handlebars-4.7.7
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/axios-0.21.1
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/decompress-4.2.1
- dev-dependabot/composer/symfony/http-kernel-4.4.13
This package is auto-updated.
Last update: 2022-11-08 12:47:38 UTC
README
Phue is a PHP micro-framework for applications driven by Vue.js.
It uses
- Silex for server-side code (routing, configuration, security, base templates, ...)
- Vue.js for client-side code
Principles
- Routes (and their Silex handlers) are defined in a central config
- UI intelligence and app logic is defined in Vue components
- Static content is defined in Vue components or (ideally) in twig templates
- A basic SEO-friendly page template is defined in Silex
- title
- header
- footer
- canvas
- content
- static content: from a view template
- dynamic content: from a handler query, converted to bot-friendly markup (e.g. RDFa)
- Silex can return the page template without surrounding layout markup
- used by client code that loads a view dynamically (via ajax)
- ?partials=true
- response contains only meta data, import-links and content partials
- client code transitions to new view and updates nav, title, partials, etc. while keeping the page layout
- Client code does not know about routes (unless an element has element-level sub-routes)
- changed routes trigger a server call and the view gets refreshed (planned: views and partials can be flagged as static)
Development
phpspec dev
composer run spec CLASSNAME desc|run