PHP Classes

Laravel OpCache Facade: Access and retrieve statistics of OPCache usage

Recommend this page to a friend!
  Info   View files Documentation   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-11-10 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 15 All time: 11,179 This week: 117Up
Version License PHP version Categories
laravel-opcache-faca 1.0.0MIT/X Consortium ...5PHP 5, Libraries, Cache, Language
Description 

Author

This package can access and retrieve statistics of OPCache usage.

It provides a Laravel service class, a facade class and a command class to access features of the PHP OPCache extension.

Currently, it can:

- Reset the contents of OPCache cached entries

- Get OPCache configuration values

- Get OPCache status values

Picture of Andrey Iatsenko
  Performance   Level  
Name: Andrey Iatsenko <contact>
Classes: 6 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 5x

Documentation

LaravelOpcacheFacade

Packagist Version Packagist Downloads Packagist Downloads

Laravel artisan commands for working with opcache.

:scroll: Installation

The package can be installed via composer:

composer require yzen.dev/laravel-opcache-facade

:scroll: Usage

Resets the contents of the opcode cache:

php artisan opcache:clear

Show configuration information about the cache:

php artisan opcache:config

Get status information about the cache:

php artisan opcache:status

Use from code

use LaravelOpcacheFacade\OpcacheFacade;

OpcacheFacade::clear();
OpcacheFacade::getConfig();
OpcacheFacade::getStatus();

  Files folder image Files  
File Role Description
Files folder imagesrc (2 files, 2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageCommands (3 files)
Files folder imageutils (1 file)
  Plain text file OpcacheFacade.php Class Class source
  Plain text file ServiceProvider.php Class Class source

  Files folder image Files  /  src  /  Commands  
File Role Description
  Plain text file ClearCommand.php Class Class source
  Plain text file ConfigCommand.php Class Class source
  Plain text file StatusCommand.php Class Class source

  Files folder image Files  /  src  /  utils  
File Role Description
  Plain text file CommandUtil.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:15
This week:0
All time:11,179
This week:117Up