All Projects → appstract → Laravel Opcache

appstract / Laravel Opcache

Licence: mit
Laravel Package for OPcache

Projects that are alternatives of or similar to Laravel Opcache

Blade Migrations Laravel
An intelligent alternative version of Laravel 5/6 Database Migrations - uses raw-sql syntax, transactions, auto-rollback, UP-DOWN-UP testing
Stars: ✭ 25 (-97.76%)
Mutual labels:  laravel, laravel-package, artisan
Generator
Laravel 5.3+ Scaffold Generator, Support both bootstrap and Semantic UI
Stars: ✭ 327 (-70.7%)
Mutual labels:  laravel, laravel-package, artisan
Laravel Settings
Simple Settings package for a laravel application
Stars: ✭ 45 (-95.97%)
Mutual labels:  laravel, laravel-package
History Tracker
Laravel Model history tracking made easy
Stars: ✭ 46 (-95.88%)
Mutual labels:  laravel, laravel-package
Laravel Async
Package provide simple way to run code asynchronously for your Laravel application.
Stars: ✭ 49 (-95.61%)
Mutual labels:  laravel, laravel-package
Laravel Weather
🌤️ A wrapper around Open Weather Map API (Current weather)
Stars: ✭ 36 (-96.77%)
Mutual labels:  laravel, laravel-package
Laravel Qrcode Ecommerce
This is a complete laravel project that handles qrcodes, payments, api/microservices, and ecommerce
Stars: ✭ 36 (-96.77%)
Mutual labels:  laravel, laravel-package
Laravel Multilang
Package to integrate multi language (multi locale) functionality in Laravel 5.x.
Stars: ✭ 47 (-95.79%)
Mutual labels:  laravel, laravel-package
Chatify
A Laravel package that allows you to add a complete user messaging system into your new/existing Laravel application.
Stars: ✭ 885 (-20.7%)
Mutual labels:  laravel, laravel-package
Webshowu
webshowu—laravel开源项目—秀站分类目录源代码
Stars: ✭ 52 (-95.34%)
Mutual labels:  laravel, artisan
Cj Google Geocoder
Stars: ✭ 49 (-95.61%)
Mutual labels:  laravel, laravel-package
Larapi
💛 Modern API development in Laravel.
Stars: ✭ 54 (-95.16%)
Mutual labels:  laravel, laravel-package
Cms
Statamic 3: The Core Composer Package
Stars: ✭ 965 (-13.53%)
Mutual labels:  laravel, laravel-package
Laravel Database Logger
Log database query sql in Laravel Application, support Guard,Auth to multiple file record
Stars: ✭ 31 (-97.22%)
Mutual labels:  laravel, laravel-package
Laravel Compass
A REST client inside your Laravel app
Stars: ✭ 1,002 (-10.22%)
Mutual labels:  laravel, laravel-package
Doorman
Limit access to your Laravel applications by using invite codes
Stars: ✭ 913 (-18.19%)
Mutual labels:  laravel, laravel-package
Laravel Translatable
It's a Laravel database translations manager
Stars: ✭ 47 (-95.79%)
Mutual labels:  laravel, laravel-package
Response Xml
The missing XML support for Laravel's Response class.
Stars: ✭ 56 (-94.98%)
Mutual labels:  laravel, laravel-package
Laravel Mailguneu
Allow customising the Mailgun server URL to use EU servers.
Stars: ✭ 13 (-98.84%)
Mutual labels:  laravel, laravel-package
Laravel Heartbeat
Periodically schedule a job to send a heartbeat to a monitoring system.
Stars: ✭ 49 (-95.61%)
Mutual labels:  laravel, laravel-package

Laravel OPcache

Latest Version on Packagist Software License Total Downloads

This package contains some useful Artisan commands to work with PHP OPcache.

If you want to learn more about OPcache and what it can do for your Laravel application, read the article on Medium.

Requirements

This package requires Laravel 7 or newer.

Installation

You can install the package via Composer:

composer require appstract/laravel-opcache

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

php artisan vendor:publish --provider="Appstract\Opcache\OpcacheServiceProvider" --tag="config"

Make sure your APP_URL is set correctly in .env.

If you want to set a different url to call the OPcache routes (for use with a load balancer for example), you can set OPCACHE_URL.

Usage

Clear OPcache:

php artisan opcache:clear

Show OPcache config:

php artisan opcache:config

Show OPcache status:

php artisan opcache:status

Pre-compile your application code:

php artisan opcache:compile {--force}

Note: opcache.dups_fixmust 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.

Programmatic usage:

use Appstract\Opcache\OpcacheFacade as OPcache;

...

OPcache::clear();

Contributing

Contributions are welcome, thanks to y'all :)

About Appstract

Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment.

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].