-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sander De la Marche
committed
Jan 9, 2023
1 parent
1368482
commit 3c9b0b8
Showing
3 changed files
with
32 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Analogo | ||
|
||
Minimal dependency to reset the content of the OPcache through PHP-FPM. | ||
|
||
## Installation | ||
|
||
composer require dreadnip/analogo | ||
|
||
## Usage | ||
This tool only supports OPcache and fcgi/PHP-FPM. | ||
|
||
If no option is passed, it'll look for a php-fpm socket file in all the common places. If multiple are found, it'll try to select one for your PHP version. | ||
|
||
If no file can be found, it will default to 127.0.0.1:9000. | ||
|
||
Since this is a single-command application, you just need to call the binary: | ||
|
||
php /path/to/your/project/vendor/bin/analogo | ||
|
||
You can also pass an IP address or a unix socket to the --fcgi option. | ||
|
||
php /path/to/your/project/vendor/bin/analogo --fcgi=/var/run/php-fpm.sock | ||
|
||
## Credit | ||
|
||
This tool is of course inspired and based on the awesome [cachetool](https://github.com/gordalina/cachetool). All of the FCGI socket code is handled by [hollodotme/fast-cgi-client](https://github.com/hollodotme/fast-cgi-client). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters