pshelf / ssr
Lightweight server side rendering for modern SPA's
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/pshelf/ssr
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-10-08 20:24:56 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