2017 © Pedro Peláez
 

library php-algorithms

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

image

doganoo/php-algorithms

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

  • Thursday, July 26, 2018
  • by doganoo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 80 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 567 % Grown

The README.md

PHPAlgorithms

, (*1)

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell, (*2)

You can find the package on Packagist: https://packagist.org/packages/doganoo/php-algorithms, (*3)

Why Using PHPAlgorithms?

"Algorithms + Data Structures = Programs", (*4)

Algorithms are a part of the basic toolkit for solving problems. Data Structures organize data in an efficient way. The combination of both allow the creation of smart and efficient software., (*5)

Installation

You can install the package via composer:, (*6)

composer require doganoo/php-algorithms

Usage

Here's an Binary Tree example:, (*7)

use doganoo\PHPAlgorithms\Datastructure\Graph\Tree\BinaryTree;

$binaryTree = new BinaryTree();
$binaryTree->insertValue(50);
$binaryTree->insertValue(25);
$binaryTree->insertValue(75);
$binaryTree->insertValue(10);
$binaryTree->insertValue(100);

echo json_encode($binaryTree);

produces, (*8)

{"nodes":{"value":50,"left":{"value":25,"left":{"value":10,"left":null,"right":null},"right":null},"right":{"value":75,"left":null,"right":{"value":100,"left":null,"right":null}}}}

Contributions

Feel free to send a pull request to add more algorithms and data structures. Please make sure that you read https://github.com/doganoo/PHPAlgorithms/wiki/Best-Practices before opening a PR. Please also consider https://github.com/doganoo/PHPAlgorithms/blob/master/CONTRIBUTING.md., (*9)

Maintainer/Creator

Doğan Uçar (@doganoo), (*10)

License

MIT, (*11)

The Versions

26/07 2018

dev-master

9999999-dev

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

25/07 2018

0.0.8

0.0.8.0

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

14/07 2018

0.0.7

0.0.7.0

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

11/07 2018

0.0.6

0.0.6.0

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

06/07 2018

0.0.5

0.0.5.0

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

25/06 2018

0.0.4

0.0.4.0

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

  Sources   Download

MIT

The Development Requires

by Dogan Ucar

22/06 2018

0.0.3

0.0.3.0

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

  Sources   Download

MIT

The Development Requires

by Dogan Ucar

21/06 2018

0.0.2

0.0.2.0

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

  Sources   Download

MIT

The Development Requires

by Dogan Ucar

11/06 2018

0.0.1

0.0.1.0

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

  Sources   Download

MIT

The Development Requires

by Dogan Ucar