{"repo":"Laragear/Preload","free":true,"listed":false,"github":"https://github.com/Laragear/Preload","clone":"git clone https://github.com/Laragear/Preload.git","description":"Effortlessly create a PHP Preload Script for your Laravel project","language":"PHP","stars":123,"topics":["laravel","php","preload","preloader"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Preload Dynamically preload your Laravel application. This package generates a PHP preloading script from your Opcache statistics automatically. No need to hack your way in. Become a sponsor Your support allows me to keep this package free, up-to-date and maintainable. Alternatively, you can spread the word on social media! Requirements PHP 8.3 or later Laravel 12 or later Opcache & Preloading enabled ( ext-opcache ). Installation Require this using Composer into your project [!NOTE] This package doesn't require the ext-opcache extension to install. Just be sure to have it enabled in your deployment server. What is Preloading? Does it make my app FAST? PHP interpreter needs to read and compile each requested file in your project. When Opcache is enabled, it will keep interpreted files in memory instead of reading them again from the file system, which is miles faster. Opcache's Preloading allows storing in memory a given list of files when the PHP process starts, before normal execution. This makes the application faster for first requests, as these files to read are already in memory. With JIT, these files are also compiled into byte-code, saving another step. This package generates a file with a list containing the most accessed files of your application and a script that will load these files on startup. You can point the \"loader\" script into your php.ini : After that, the next time PHP starts, this list of files will be preloaded automatically. [!NOTE] If you're behind a ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Laragear","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Laragear/Preload/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}