PHPackages                             practically/preloader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. practically/preloader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

practically/preloader
=====================

PHP preloading for PHP &gt;=7.4

v1.0.1(5y ago)1034.7k↓33.3%[1 issues](https://github.com/Practically/Preloader/issues)[1 PRs](https://github.com/Practically/Preloader/pulls)PHPPHP &gt;=7.4

Since Mar 22Pushed 2y ago2 watchersCompare

[ Source](https://github.com/Practically/Preloader)[ Packagist](https://packagist.org/packages/practically/preloader)[ RSS](/packages/practically-preloader/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (7)Used By (0)

Preloader
=========

[](#preloader)

PHP preloading for PHP &gt;=7.4. Preloading is a feature of php that will pre-compile php functions and classes to opcache. Thus, this becomes available in your programs with out needing to require the files, which improves speed. To read more on php preloading you can see the [opcache.preloading documentation](https://www.php.net/manual/en/opcache.preloading.php).

Installation
------------

[](#installation)

The preferred method is with composer.

```
composer require practically/preloader
```

Usage
-----

[](#usage)

After installation you need to create a preload executable.

```
#!/usr/bin/env php
