PHPackages                             lfbn/file-get-contents-proxy - 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. lfbn/file-get-contents-proxy

ActiveLibrary

lfbn/file-get-contents-proxy
============================

A proxy, around file\_get\_contents, that gives him extra features.

v0.0.1(6y ago)03MITPHPPHP 7.3.8

Since Mar 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lfbn/file_get_contents_proxy)[ Packagist](https://packagist.org/packages/lfbn/file-get-contents-proxy)[ RSS](/packages/lfbn-file-get-contents-proxy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

File Get Contents Proxy
=======================

[](#file-get-contents-proxy)

> A proxy with extra features around file\_get\_contents.

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

[](#installation)

Install the package with composer:

```
composer require "lfbn/file-get-contents-proxy"

```

Why use this?
-------------

[](#why-use-this)

With this package you can use [file\_get\_contents](https://www.php.net/manual/en/function.file-get-contents.php) to get the content of a file, and make this content cacheable in memory.

This way, you have an extra nice feature provided by this proxy, around file\_get\_contents.

Usage
-----

[](#usage)

### Obtaining a file content once

[](#obtaining-a-file-content-once)

If you only need to obtain the file content once, then you don't need to do anything differently. Just use file\_get\_contents as normal!

```
