PHPackages                             mathiasreker/php-script-cache - 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. mathiasreker/php-script-cache

ActiveLibrary

mathiasreker/php-script-cache
=============================

php-script-cache is a PHP library for caching external scripts locally.

1.1.0(3y ago)531[1 PRs](https://github.com/MathiasReker/php-script-cache/pulls)MITPHPPHP &gt;=7.4CI passing

Since Oct 31Pushed 1y ago2 watchersCompare

[ Source](https://github.com/MathiasReker/php-script-cache)[ Packagist](https://packagist.org/packages/mathiasreker/php-script-cache)[ Docs](https://github.com/mathiasreker/php-script-cache)[ GitHub Sponsors](https://github.com/MathiasReker)[ RSS](/packages/mathiasreker-php-script-cache/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

PHP script cache
================

[](#php-script-cache)

[![Packagist Version](https://camo.githubusercontent.com/8594793e76f3b5cbc52ac9414871b6a51dec073250c9766b104a765531772364/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d61746869617352656b65722f7068702d7363726970742d63616368652e737667)](https://packagist.org/packages/MathiasReker/php-script-cache)[![Packagist Downloads](https://camo.githubusercontent.com/135c41b2fc809cd43ca46090d8030bce025442cefa72634964050486273ce642/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4d61746869617352656b65722f7068702d7363726970742d63616368652e7376673f636f6c6f723d253233666630303766)](https://packagist.org/packages/MathiasReker/php-script-cache)[![CI status](https://github.com/MathiasReker/php-script-cache/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/MathiasReker/php-script-cache/actions/workflows/ci.yml)[![Contributors](https://camo.githubusercontent.com/24eb75d7446c394fb040cc9ebb25411bbb84f0c80b7c3ea00fae4886655abf0e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f4d61746869617352656b65722f7068702d7363726970742d63616368652e737667)](https://github.com/MathiasReker/php-script-cache/graphs/contributors)[![Forks](https://camo.githubusercontent.com/8c6d772b3c0af9bc92c11be428def64c55d4ad71e141d65bf5a43c67e1c57542/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f4d61746869617352656b65722f7068702d7363726970742d63616368652e737667)](https://github.com/MathiasReker/php-script-cache/network/members)[![Stargazers](https://camo.githubusercontent.com/7e1abc3cbd354e3902c82143936f05437588f71e145afe043a2e5117bb69ad22/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4d61746869617352656b65722f7068702d7363726970742d63616368652e737667)](https://github.com/MathiasReker/php-script-cache/stargazers)[![Issues](https://camo.githubusercontent.com/ef6fe9937ccf959953b7d639730f4053cda72b1f214773f87689bad1353d2426/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4d61746869617352656b65722f7068702d7363726970742d63616368652e737667)](https://github.com/MathiasReker/php-script-cache/issues)[![MIT License](https://camo.githubusercontent.com/fed36a5376ce271c7084144e091c2cb431d9c552c9e836525fe83a02ed3773a0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4d61746869617352656b65722f7068702d7363726970742d63616368652e737667)](https://github.com/MathiasReker/php-script-cache/blob/develop/LICENSE.txt)

`php-script-cache` is a PHP library for caching external scripts locally.

> ✅ Cache ✅ Bundle ✅ Minify

### Versions &amp; Dependencies

[](#versions--dependencies)

VersionPHPDocumentation^1.0^7.4current### Requirements

[](#requirements)

- `PHP` &gt;= 7.4
- php-extension `ext-json`

### Installation

[](#installation)

Run:

```
composer require mathiasreker/php-script-cache
```

### Examples

[](#examples)

Set up a cronjob to build the assets.

```
