PHPAlgorithms
A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell
File Explorer
Download Latest Version (.zip)- bug_report.md
- custom.md
- feature_request.md
- FUNDING.yml
- BidirectionalSearch.php
- BreadthFirstSearch.php
- DepthFirstSearch.php
- LinkedListSearch.php
- RecursiveSearch.php
- BubbleSort.php
- BucketSort.php
- InsertionSort.php
- MergeSort.php
- QuickSort.php
- RadixSort.php
- SelectionSort.php
- TimSort.php
- TopologicalSort.php
- InOrder.php
- LevelOrder.php
- PostOrder.php
- PreOrder.php
- Converter.php
- Misc.php
- Permutation.php
- AbstractBinaryNode.php
- AbstractGraph.php
- AbstractGraphSearch.php
- AbstractLinkedList.php
- AbstractNode.php
- AbstractSet.php
- AbstractTable.php
- AbstractTraverse.php
- AbstractTree.php
- IndexOutOfBoundsException.php
- InvalidBitLengthException.php
- InvalidGraphTypeException.php
- InvalidKeyTypeException.php
- InvalidSearchComparisionException.php
- NodeNotFoundException.php
- NoNodeFoundException.php
- NullNotAllowedException.php
- PHPAlgorithmsException.php
- UnsupportedKeyTypeException.php
- ValueNotAllowedException.php
- IBinaryNode.php
- ICache.php
- IComparable.php
- IGraphSortable.php
- IHashable.php
- IHeap.php
- INode.php
- ISet.php
- ISortable.php
- IUnaryNode.php
- IVector.php
- LinkedListIterator.php
- Comparator.php
- MapUtil.php
- LRUCache.php
- Node.php
- DirectedGraph.php
- Node.php
- UndirectedGraph.php
- Node.php
- BinaryNode.php
- BinarySearchNode.php
- MaxHeap.php
- MinHeap.php
- Node.php
- Node.php
- EndOfWordNode.php
- Node.php
- RootNode.php
- Trie.php
- AVLTree.php
- BinarySearchTree.php
- BinaryTree.php
- RedBlackTree.php
- ArrayList.php
- StringBuilder.php
- DoublyLinkedList.php
- SinglyLinkedList.php
- Node.php
- Map.php
- HashSet.php
- CircularBuffer.php
- FixedQueue.php
- FixedStack.php
- PriorityQueue.php
- Queue.php
- Stack.php
- StackSet.php
- ConsistentHashTable.php
- HashTable.php
- SimpleTable.php
- Enum.php
- IntegerVector.php
- IntegerVector.php
- LRUCacheTest.php
- ComparatorTest.php
- DirectedGraphTest.php
- TrieTest.php
- AVLTree.php
- BinarySearchTreeTest.php
- BinaryTreeTest.php
- ArrayListTest.php
- StringBuilderTest.php
- DoublyLinkedListTest.php
- SinglyLinkedListTest.php
- NodeTest.php
- HashSetTest.php
- SortTest.php
- CircularBufferTest.php
- FixedStackTest.php
- StackSetTest.php
- StackTest.php
- HashableObject.php
- HashTableTest.php
- HashTableUtil.php
- LinkedListUtil.php
- TreeUtil.php
- EnumTest.php
- PermutationTest.php
- .editorconfig
- .gitignore
- CODE_OF_CONDUCT.md
- composer.json
- composer.lock
- CONTRIBUTING.md
- ISSUE_TEMPLATE.md
- LICENSE
- phpstan.neon
- phpunit.xml
- PULL_REQUEST_TEMPLATE.md
- README.md
- travis.yml
# Installation Guide
1. Get the code
git clone https://github.com/doganoo/PHPAlgorithms
Downloads the entire project code from GitHub to your computer.
cd PHPAlgorithms
Moves into the project folder you just downloaded.
2. PHP (Composer)
Easy RecommendedPrerequisites
composer require doganoo/php-algorithms
Type this command into your terminal and run it.
Run it with a built-in server like php -S localhost:8000, then open http://localhost:8000 in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
