Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 804 Bytes

File metadata and controls

29 lines (18 loc) · 804 Bytes

StackerStack

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