Laravel OPcache Package

PHP, since version 5.5, comes bundled with OPcache which improves performance. Here is how PHP documentation explains it:

OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request.

One of the drawbacks to implementing OPcache is that you have to clear the cache every time you change any PHP code. Because of this, the team at Appstract has created a Laravel Artisan package that gives you quick and easy commands for OPcache. Here are a few usage examples: