DEV Community

Cover image for CacheerPHP: The Minimalist Caching Solution for PHP
Sílvio Silva
Sílvio Silva

Posted on

CacheerPHP: The Minimalist Caching Solution for PHP

Speak up, Dev! 🖖

Have you ever heard the expression “a programmer can't live on frameworks alone”? 😅

Well, regardless of your opinion on this, it's a fact that, in many projects, we end up having to build from scratch, dealing with issues such as security and, especially, performance.

With this in mind, I developed CacheerPHP, a minimalist caching package for PHP, offering a simple and efficient interface for storing and retrieving cached data using files.

🔹 Main Features:

  • 💾 Cache Storage: Save data in the cache for fast and efficient access.
  • Cache Retrieval: Retrieve data from the cache quickly, reducing loading times.
  • 🧹 Cache clearing: Clear specific data or the entire cache when necessary.
  • Customizable expiration: Set the cache expiration time in seconds, minutes or hours.
  • Automatic Cache Directory Cleanup: Set how long the cache files are stored on the system.

🔹 Why use CacheerPHP?

  • 🚀 Performance: Improve the speed and performance of your system.
  • 🛠️ Simplicity: Easy-to-use and well-documented interface.
  • 🌐Flexibility: Compatible with PHP 8.0 and higher.
  • 📂 PSR-4 autoloading: Organized directory structure compatible with autoloading.

Installation:

Installation is simple and quick via Composer:

composer require silviooosilva/cacheer-php
Enter fullscreen mode Exit fullscreen mode

🔹 Learn More:
Check out the full documentation and source code on my GitHub: https://github.com/silviooosilva/CacheerPHP

🌐 Connect with me!
Follow me on social media to stay up to date with news and updates:

Top comments (0)