Download the PHP package plakhin/fpm-optimize without Composer

On this page you can find all versions of the php package plakhin/fpm-optimize. 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 fpm-optimize

Optimal PHP-FPM config values based on system configuration and load

Tests Latest Version on Packagist Total Downloads

[!IMPORTANT]
Since v2.0 only Linux is supported.

This package determines the number of system CPU cores, available RAM, and average RAM usage per PHP-FPM pool worker process. It then calculates the opinionated optimal values for PHP-FPM pool configuration, such as:

Don't forget to keep an eye on your php-fpm.log to avoid failures!

Installation & Usage

[!IMPORTANT] Ensure that your server is operating normally and serving incoming requests before executing the package command. This command takes into account the available RAM and the average RAM usage per PHP-FPM pool worker process to calculate values.

The most simple way to get the optimal PHP-FPM config values suggestions is to run the following command:

Laravel

Also, you can install the package with composer as a dependency to your Laravel 11+ project:

Once installed, you can run php artisan optimize:php-fpm command to see the suggested php-fpm config values.

Additionally, this package adds php-fpm config values suggestions into optimize Artisan Command output.
If you don't want this behavior, simply set FPM_OPTIMIZE_INJECT_INTO_ARTISAN_OPTIMISE_COMMAND=false in your .env file.

Contributing

Contributions are welcome, and are accepted via pull requests. Please review these guidelines before submitting any pull requests.

Process

  1. Fork the project
  2. Create a new branch
  3. Code, test, commit and push
  4. Open a pull request detailing your changes.

Guidelines

Linting

Refactoring with Rector

Testing

Run all tests:

Check code style:

Check possible code improvements:

Check types:

Run Unit tests:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

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


All versions of fpm-optimize with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3.0
illuminate/process Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.19
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 plakhin/fpm-optimize contains the following files

Loading the files please wait ...