wilbur-yu/hyperf-opcache

This package is abandoned and no longer maintained. The author suggests using the wenber-yu/hyperf-opcache package instead.

PHP Opcache command for Hyperf

Maintainers

Package info

github.com/wenber-yu/hyperf-opcache

pkg:composer/wilbur-yu/hyperf-opcache

Transparency log

Statistics

Installs: 2 895

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

3.0.0 2023-03-25 07:30 UTC

This package is auto-updated.

Last update: 2026-07-02 19:39:51 UTC


README

PHP Opcache command for Hyperf

description

Transplantation in laravel-opcache Opcache configuration reference OPcache configuration

Requirements

This package requires hyperf 2.1 or newer.

Installation

You can install the package via Composer:

composer require wenber-yu/hyperf-opcache

If you need to change config values, you can publish the config file with:

php bin/hyperf.php vendor:publish wenber-yu/hyperf-opcache

usage

  • config
php bin/hyperf.php opcache:config
  • status
php bin/hyperf.php opcache:status
  • clear
php bin/hyperf.php opcache:clear
  • compile
php bin/hyperf.php opcache:compile {--force}

Note: opcache.dups_fix must be enabled, or use the --force flag. If you run into "Cannot redeclare class" errors, enable opcache.dups_fix or add the class path to the exclude list.

Contributing

Thanks to the laravel-opcache and their contributors

License

The MIT License (MIT). Please see License File for more information.