Download the PHP package jonathangoncalves/laravel-opcache without Composer

On this page you can find all versions of the php package jonathangoncalves/laravel-opcache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-opcache

laravel-opcache Build Status

Custom OPcache Cache Driver for Laravel. Faster than Redis, Memcache or APC.

This package adds a cache driver to your Laravel project that uses PHP engine’s in-memory file caching (OPcache) to cache application data.

This method is faster than Redis, Memcache, APC, and other PHP caching solutions because all those solutions must serialize and unserialize objects. By storing PHP objects in file cache memory across requests, this driver can avoid serialization completely!

Installation

Require this package with composer.

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

If you don't use auto-discovery or Laravel version 5.4 or older, add the ServiceProvider to the providers array in config/app.php

Then, make sure you add the driver option to the stores array in config/cache.php

And enable the driver in your .env file or in config/cache.php

OPcache configuration

OPcache can only be compiled as a shared extension. You must compile PHP with the --enable-opcache option for OPcache to be available.

OPcache must be enabled and configured in your php.ini. Look for the section starting with [OPcache] and enter the desired values. The more memory you can assign to OPcache, the faster your cache will be. The opcache.max_accelerated_files value should be high enough to hold all objects that need to be cached.

Since all PHP files will be cached with OPcache, it is not advisable to use it in a development environment, so only enable it in production. Alternatively, you can exclude PHP files from being cached by specifying a blacklist file with the opcache.blacklist_filename option.

Graceful degradation: when OPcache is not enabled or installed, or memory is insufficient, this driver will still work but will read from the cached files instead of from memory. Since there's no unserialization required, it will still be faster than a regular file cache driver.

Caching Eloquent models

Depending on how you've configured caching in your project, you may want to cache full Eloquent models. If so, base your model classes on ElcoBvG\Opcache\Model instead of the regular Eloquent base model class, so they can be retrieved correctly from cache.

References


All versions of laravel-opcache with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jonathangoncalves/laravel-opcache contains the following files

Loading the files please wait ....