Download the PHP package cancio-labs/php-stack without Composer
On this page you can find all versions of the php package cancio-labs/php-stack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cancio-labs/php-stack
More information about cancio-labs/php-stack
Files in cancio-labs/php-stack
Download cancio-labs/php-stack
More information about cancio-labs/php-stack
Files in cancio-labs/php-stack
Vendor cancio-labs
Package php-stack
Short Description Interface and an array-based implementation of the LIFO Stack data structure.
License GPL-3.0-or-later
Package php-stack
Short Description Interface and an array-based implementation of the LIFO Stack data structure.
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package php-stack
CancioLabs / DS / PHP-Stack
This tiny package contains an interface and an array-based implementation of the LIFO Stack data structure.
Interface
Method | Description |
---|---|
push | Adds a new element to the top of the stack. |
pop | Removes and return the top element of the stack. |
top | Returns the top element of the stack. |
isEmpty | Tests whether the stack is empty. |
clear | Removes all elements from the stack. |
count | Returns the number of elements of the stack. |
toArray | Transforms the stack into an array. |
How to use it
Tests and Coverage
All tests are passing with no warnings and code coverage is 100%.
All versions of php-stack with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
The package cancio-labs/php-stack contains the following files
Loading the files please wait ....