pshelf/ssr

Lightweight server side rendering for modern SPA's

0.1.4 2019-06-14 05:14 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

yarn install --no-bin-links

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