long-blade/stackerstack

A simple LIFO|FIFO file stacker

dev-master 2021-10-14 08:23 UTC

This package is auto-updated.

Last update: 2024-04-14 14:03:12 UTC


README

This library provides a simple file stacking solution using LIFO / FIFO stacking database model.

Installation

The suggested installation method is via composer:

composer require long-blade/stackerstack

Usage

The stakerstack is able to create a simple stacking method using a file, generated in the root directory of your project.

$lifoStack = new LifoStack(); // OR new FifoStack();

$lifoStack->push($data]) // push any data to the stack
$lifoPoppedItem = $lifoStack->pop() // pop an item from the stack

Contributing

Please read the CONTRIBUTING.md contents if you wish to help out!

License

MIT