Skip to content

oliverklee/anagram-finder

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Anagram finder

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

This tool is the result of an exercise (code kata, coding dojo) for test-driven development (TDD) for PHP using PHPUnit at Oliver Klee's workshops.

An anagram is pair of two words that consist of exactly the same letters, but in different order.

Example: anthologise, theologians

Installation

Run composer install to install the required Composer packages.

How to run it

bin/FindAnagrams.php

The exercises

  1. Create a class that reads a list of words from a file and returns it as an array.
  2. Create a class that takes a word and sorts the characters.
  3. Create a class that finds and returns the anagram from an array of words.

About me (Oliver Klee)

I am the maintainer of the PHPUnit TYPO3 extension, which is available in the TYPO3 extension repository (TER).

You can book me for workshops at your company.

I also frequently give workshops at the TYPO3 Developer Days.

More Documentation

Other example projects

  • Selenium demo for using Selenium with PHPUnit
  • Coffee example is my starting point for demonstrating TDD
  • Tea example for unit tests for extbase extensions for TYPO3 CMS
  • TDD Seed for starting PHPUnit projects with Composer (without TYPO3 CMS)

About

A tool for finding anagrams from a list of words (as an exercise of test-driven development).

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages