Download the PHP package themattosdev/leakless without Composer

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

Leakless Banner

Zero-State & Memory Leak Prevention for Persistent PHP Workers (FrankenPHP, RoadRunner, Swoole, Symfony, Laravel & Vanilla)

Latest Version PHP Version Tests Passing License


Overview

In traditional PHP-FPM, worker processes terminate after each request, allowing the OS to wipe memory and state. Persistent runtimes like FrankenPHP, RoadRunner, Swoole, and Laravel Octane keep PHP in memory across thousands of requests. While significantly faster, long-running workers can suffer from unmonitored C-extension memory growth (outside the Zend VM heap), dangling database transactions, open file handles, and polluted global/static state.

Leakless is an autonomous runtime guardian and static analysis engine for any persistent PHP stack: it reads real Linux kernel RSS from /proc/self/statm, rolls back uncommitted PDO transactions, cleans runtime state with a zero-reflection resettables engine in finally blocks, gracefully recycles workers before OOM Killer strikes, and provides static analysis via PHPStan and Pest assertions.


Installation


Usage

1. Vanilla PHP / FrankenPHP Loop

2. Laravel Octane (Zero-Config)

In config/leakless.php, you can also register classes or callbacks to auto-reset:

Note regarding Laravel Octane: Octane provides native scoped() bindings and a 'flush' list in config/octane.php. Leakless provides its compiled zero-reflection resettables engine and #[ResetOnRequest] attribute. It is at your own discretion which mechanism to use — you can rely on Octane's native mechanisms, use Leakless's resettables, or combine both seamlessly.

3. Declarative State Reset (#[ResetOnRequest])

Annotate properties or classes to automatically restore initial or default values between requests when registered in resettables:

Important: #[ResetOnRequest] does not automatically scan all classes across your application. To be reset at runtime, the target class (for static state) or object instance (for instance state) must be registered in 'resettables' or via $leakless->registerResetTarget().

4. Automated Testing (Pest & PHPUnit)

5. Static Worker Linter CLI


Documentation

Full documentation, architecture guides, kernel memory details, and anti-pattern catalogues are available at:

👉 https://leakless.themattos.dev


Testing & Quality


License

Open-source software licensed under the MIT License.
Developed by Jonathan Gonçalves.


All versions of leakless with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
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 themattosdev/leakless contains the following files

Loading the files please wait ...