All Projects → Wruczek → PHP-File-Cache

Wruczek / PHP-File-Cache

Licence: MIT license
Light, simple and standalone PHP in-file caching class

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to PHP-File-Cache

core
An advanced and highly optimized Java library to build frameworks: it's useful for scanning class paths, generating classes at runtime, facilitating the use of reflection, scanning the filesystem, executing stringified source code and much more...
Stars: ✭ 100 (+194.12%)
Mutual labels:  caching, filesystem
fswatch
File/Directory Watcher for Modern C++
Stars: ✭ 56 (+64.71%)
Mutual labels:  filesystem, mit-license
fight-for-artistic-creativity
Twitterをディストピアにしないために、我々ができること。
Stars: ✭ 19 (-44.12%)
Mutual labels:  mit-license
Willow
The Web Interaction Library that eases the burden of creating AJAX-based web applications
Stars: ✭ 41 (+20.59%)
Mutual labels:  mit-license
nn-segmentation-for-lar
Neural networks to segment some type of biomedical images
Stars: ✭ 21 (-38.24%)
Mutual labels:  mit-license
Inventus
Inventus is a spider designed to find subdomains of a specific domain by crawling it and any subdomains it discovers.
Stars: ✭ 80 (+135.29%)
Mutual labels:  mit-license
rorshach
A watchman for your directories. Rorshach allows you to listen to file system changes and run commands when these events occur.
Stars: ✭ 26 (-23.53%)
Mutual labels:  filesystem
fs-fuse
Export any Node.js `fs`-like object as a FUSE filesystem
Stars: ✭ 32 (-5.88%)
Mutual labels:  filesystem
lidtk
Language Identification Toolkit
Stars: ✭ 17 (-50%)
Mutual labels:  mit-license
s3-concat
Concatenate Amazon S3 files remotely using flexible patterns
Stars: ✭ 32 (-5.88%)
Mutual labels:  filesystem
react-file-manager
A file manager built in ReactJs
Stars: ✭ 40 (+17.65%)
Mutual labels:  filesystem
Dazinator.Extensions.FileProviders
No description or website provided.
Stars: ✭ 34 (+0%)
Mutual labels:  filesystem
Aqeous
(Inactive, Checkout AvanaOS, Rewrite of this) This is a New Operating System (Kernel right now). Made completely from scratch, We aim to make a complete OS for Learning purpose
Stars: ✭ 23 (-32.35%)
Mutual labels:  filesystem
weaver
A distributed object file system inspired by the paper Beaver which was published by Facebook Inc. at 2010.
Stars: ✭ 18 (-47.06%)
Mutual labels:  filesystem
Unity-FPS-Counter
#NVJOB FPS Counter and Graph. Free Unity Asset.
Stars: ✭ 44 (+29.41%)
Mutual labels:  mit-license
powerslaves
Taking PowerSaves as a slave to your will.
Stars: ✭ 28 (-17.65%)
Mutual labels:  mit-license
Winter
Winter is a 2D game engine for Pharo Smalltalk
Stars: ✭ 43 (+26.47%)
Mutual labels:  mit-license
Meteor-logger-file
🔖 Meteor Logging: Store application log messages into file (FS)
Stars: ✭ 24 (-29.41%)
Mutual labels:  filesystem
ParsecSoda
Parsec Soda is a custom open-source game streaming app that integrates with Parsec API and is focused in Host experience.
Stars: ✭ 135 (+297.06%)
Mutual labels:  mit-license
rust-vfs
A virtual filesystem for Rust
Stars: ✭ 150 (+341.18%)
Mutual labels:  filesystem

PHP-File-Cache Latest Stable Version Latest Unstable Version License

Light, simple and standalone PHP in-file caching class

Advantages

  • Light, standalone and simple
  • All code in one file - no pointless drivers.
  • Secure - every generated cache file have a php header with die, making direct access impossible even if someone knows the path and your server is not configured properly
  • Well documented and tested
  • Handles concurrency correctly via flock
  • Supports PHP 5.4.0 - 7.1+
  • Free under a MIT license

Requirements and Installation

You need PHP 5.4.0+ for usage and PHP 5.6+ for development (PHPUnit)

Require with composer:
composer require wruczek/php-file-cache

Usage

<?php
use Wruczek\PhpFileCache\PhpFileCache;
require_once __DIR__ . "/vendor/autoload.php";

$cache = new PhpFileCache();

$data = $cache->refreshIfExpired("simple-cache-test", function () {
    return date("H:i:s"); // return data to be cached
}, 10);

echo "Latest cache save: $data";

See examples for more

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].