Download the PHP package iperamuna/laravel-hypercacheio without Composer

On this page you can find all versions of the php package iperamuna/laravel-hypercacheio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-hypercacheio

Laravel Hyper-Cache-IO

Latest Version on Packagist Total Downloads License

Laravel Hyper-Cache-IO is an ultra-fast, distributed cache driver for Laravel applications. By combining L1 in-memory caching with a persistent SQLite WAL backend, it delivers exceptional performance and reliability without the overhead of Redis or Memcached.

Designed for modern PHP environments like FrankenPHP, Swoole, and traditional Nginx/FPM, it features a lightweight internal HTTP API for seamless multi-server synchronization.


⚡ Features


📦 Installation

Install the package via Composer:

Run the installation command to configure the package:


⚙️ Configuration

1. Set the Cache Driver

Update your .env file to use hypercacheio:

2. Configure Server Roles

Hyper-Cache-IO uses a simple Primary/Secondary architecture. You can also run it in standalone mode (Primary only).

Primary Server (Writer)

A single "Primary" node handles all write operations to the database. You can optionally list secondary server URLs so the primary replicates writes to them.

Secondary Server (Reader)

"Secondary" nodes read from their local copy (synced via shared volume or future replication features) and forward writes to the Primary via HTTP.

3. Advanced Configuration

Publish and fine-tune the config file at config/hypercacheio.php:

4. Environment Variables Reference

Variable Description Default
CACHE_DRIVER Set to hypercacheio to use this driver
HYPERCACHEIO_SERVER_ROLE primary or secondary primary
HYPERCACHEIO_PRIMARY_URL Full URL of the primary server's API http://127.0.0.1/api/hypercacheio
HYPERCACHEIO_SECONDARY_URLS Comma-separated secondary server URLs (empty)
HYPERCACHEIO_API_TOKEN Shared secret for inter-server auth changeme
HYPERCACHEIO_ASYNC Enable fire-and-forget replication true
HYPERCACHEIO_SERVER_TYPE laravel (default) or go laravel
HYPERCACHEIO_GO_DIRECT_SQLITE Execute SQLite queries directly in Go true
HYPERCACHEIO_GO_HOST External/advertised IP of the Go server (used by secondaries) 127.0.0.1
HYPERCACHEIO_GO_LISTEN_HOST IP the Go daemon binds to. Use 0.0.0.0 to listen on all interfaces 0.0.0.0
HYPERCACHEIO_GO_PORT Port the Go server listens on 8080
HYPERCACHEIO_HA_ENABLED Enable Active-Active HA Mode true
HYPERCACHEIO_PEER_ADDRS Comma-separated replication peers (IP:Port) (empty)
HYPERCACHEIO_REPL_PORT Port for inter-node binary replication 7400

1. High Performance Architecture (v1.7.0)

The Go server is now architected for Redis-like performance using:

📊 Internal Benchmarks (M1 Pro)

Metric Performance
Parallel GET 22,000,000+ ops/s
Parallel SET 7,500,000+ ops/s
P95 Latency ~250 nanoseconds
TCP Replication 95,000+ frames/s

2. Enable Go Server

Update your .env:

2. Active-Active HA Mode (TCP Replication)

As of version 1.6.0, Hyper-Cache-IO supports a robust Active-Active HA architecture. Multiple application servers can each run their own local Go cache node, with all nodes synchronizing state in real-time over a dedicated binary TCP protocol.

To enable HA Mode, configure your peers in .env:

The hypercacheio:go-server command will automatically configure the Go binary to use your application's absolute database path (config('hypercacheio.sqlite_path')) and cache prefix (config('cache.prefix')).

2. Compile & Start

The package includes a full management CLI for the Go daemon:

3. Run as a System Service

Generate service configuration files for your OS, then install and manage them via Artisan:


🔌 Connectivity Check

To verify that your server can communicate with the configured Primary/Secondary nodes, run the built-in connectivity check command:

This command:


🛠️ Usage

Use the standard Laravel Cache Facade. No new syntax to learn!


🔌 Internal API

The package exposes a lightweight internal API for node synchronization. Each endpoint is secured via X-Hypercacheio-Token.

Method Endpoint Description
GET /api/hypercacheio/cache/{key} Fetch a cached item
POST /api/hypercacheio/cache/{key} Upsert (Create/Update) an item
POST /api/hypercacheio/add/{key} Atomic "Add" operation
DELETE /api/hypercacheio/cache/{key} Remove an item
POST /api/hypercacheio/lock/{key} Acquire an atomic lock
DELETE /api/hypercacheio/lock/{key} Release an atomic lock

✅ Testing

You can run the full test suite (Unit & Integration) using Pest:


📄 License

The MIT License (MIT). Please see License File for more information.


❤️ Credits


All versions of laravel-hypercacheio with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-pdo Version *
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/cache Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0
laravel/prompts Version ^0.1|^0.2|^0.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package iperamuna/laravel-hypercacheio contains the following files

Loading the files please wait ...