Implementation of well-known data structures in PHP.
Feel free to fork this repository and solve something in better, i.e. more optimal way.
php-data-structures is dockerized for everyone who prefers to debug in the browser instead of in the console.
If you have docker installed:
- Pull php-data-structures project
- Open console and change directory to project root
- Run the following command:
docker-compose up -d- Now you can open any data structure in your favorite browser, e.g.
http://localhost/src/Stack.php
- If you need to enter a running container:
docker exec -it php-data-structures_app_1 /bin/bashPHPUnit is used for testing implemented data structures:
Tests can be run using command:
./vendor/bin/phpunit tests/Copyright (c) 2015 - 2019 Pave Aljinović
Licensed under the MIT License