pshelf / ssr
Lightweight server side rendering for modern SPA's
0.1.4
2019-06-14 05:14 UTC
Requires
- php: ~7.2
- league/uri-components: ^1.8
- monolog/monolog: ^1.24
- nesk/puphpeteer: ^1.4
- react/socket: ^1.2
- symfony/console: ^4.2
- symfony/filesystem: ^4.2
- symfony/http-foundation: ^4.2
- symfony/process: ^4.2
- symfony/var-dumper: ^4.2
This package is auto-updated.
Last update: 2025-03-08 19:01:30 UTC
README
Install PHP module dependencies:
composer install
Install puppeteer dependencies:
npm install
Dependencies
php >= 7.2 node 8
PHP Intl (The Internationalization extension)
Search for the extension package that applies to your PHP version
apt search intl
Install the package
apt install php7.2-intl
Install graphic libraries for puppeteer
Solve Issues
Vagrant cant execute npm install
Cannot write
Todo
- Cleanup unused dependencies from composer
- Implement work queues to execute the prerenders like RabbitMQ, Celery, etc
- Create commands to clear cache or dump current status
- Pack into a composer package
- Set better logging
- Refactor URL validation with the Request class
- Re-test on clean environment
- Add concurrent tasks with configurable limit