Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Laravel wrapper for MailMug's zentropy-php package (Redis alternative)

License

NotificationsYou must be signed in to change notification settings

mailmug/zentropy-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Version

Zentropy Laravel is a simple and powerfulLaravel wrapper for MailMug's Zentropy PHP client — a high-performanceRedis alternative. Easily store, retrieve, and manage key-value data usingTCP or Unix socket connections directly from your Laravel applications.


Zentropy Server

Features

  • ✅ Full Laravel 10, 11, 12 support
  • ✅ Facade access for clean and readable syntax
  • ✅ SupportsTCP connections with optional authentication
  • ✅ SupportsUnix socket connections (no authentication required)
  • ✅ Common key-value operations:set,get,delete,exists,ping
  • ✅ Easily configurable via publishedzentropy.php config
  • ✅ Lightweight and high-performance alternative to Redis

Installation

Install via Composer:

composer require mailmug/zentropy-laravel

Publish Config and Service Provider

To publish the configuration file:

php artisan vendor:publish --provider="MailMug\ZentropyLaravel\ZentropyWrapperServiceProvider" --tag="config"

This will create config/zentropy.php where you can configure host, port, password, and Unix socket.

Add to .env

ZENTROPY_HOST=127.0.0.1ZENTROPY_PORT=6383ZENTROPY_PASSWORD=nullZENTROPY_UNIX_SOCKET=null
  • ZENTROPY_HOST – the host of your Zentropy server (default 127.0.0.1)

  • ZENTROPY_PORT – TCP port of your server (default 6383)

  • ZENTROPY_PASSWORD – optional password for TCP

  • ZENTROPY_UNIX_SOCKET – optional Unix socket path

Usage

useMailMug\ZentropyLaravel\Facades\Zentropy;// Set a valueZentropy::set('foo','bar');// Get a value$value = Zentropy::get('foo');// Check if a key exists$exists = Zentropy::exists('foo');// Delete a keyZentropy::delete('foo');// Ping the server$ping = Zentropy::ping();

License

This project is licensed under the MIT License.

About

Laravel wrapper for MailMug's zentropy-php package (Redis alternative)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp