List of PHP Kata to Update - codewars/content-issues GitHub Wiki

PHP 8.0 with PHPUnit 9.5.2 was added. The kata on this page needs to be updated manually. Any help is appreciated!

Summary of Changes

  • Files are no longer concatenated, but it should work very similarly as before because solution and preloaded files are autoloaded
  • The name of the test class now required to end with Test
  • Solution and Preloaded file should have <?php
    • Runner prepends this if missing for backwards compatibility, but any new code should include it
  • Test file should have <?php use PHPUnit\Framework\TestCase;
    • Runner prepends this if <?php is missing for backwards compatibility, but any new code should include it
  • PHPUnit is updated to 9.5.2 so there are some breaking changes

List of Kata

  1. 'Magic' recursion call depth number
  2. Address Book by State
  3. Basic variable assignment
  4. Binary multiple of 3
  5. Brainfuck Translator
  6. Brick pyramid.
  7. Buddy Pairs
  8. Build a Directory
  9. Burrows-Wheeler-Transformation
  10. Buying a car
  11. Car Park Escape
  12. Car Wars
  13. Cartesian neighbors
  14. Catalog
  15. Challenge Fun #14: Target Game
  16. Champernowne's Championship
  17. Check and Mate?
  18. Ciphers #1 - The 01 Cipher
  19. Color Choice
  20. Connect 4
  21. Convert string to camel case
  22. Count up the points for the 7 Wonders board game! Easy version
  23. Counting Duplicates
  24. Creating a custom PHP stream wrapper
  25. Debug the functions EASY
  26. Divide numbers as strings
  27. Domain name validator
  28. Don't rely on luck.
  29. Draw a Circle.
  30. Drawing a cube
  31. Error correction #1 - Hamming Code
  32. Esolang Interpreters #1 - Introduction to Esolangs and My First Interpreter (MiniStringFuck)
  33. Esolang: InfiniTick
  34. Evaluate mathematical expression
  35. Experimenting with a sequence of complex numbers
  36. extract file name
  37. Factorial decomposition
  38. Family Gift Exchange / Names Out of a Hat
  39. Fibo akin
  40. Filter valid romans
  41. Financing Plan on Planet XY140Z-n
  42. Find all pairs
  43. Find The Parity Outlier
  44. Find the smallest integer in the array
  45. Find twins
  46. Fluent Calculator
  47. Follow that Spy
  48. Functions of Integers on Cartesian Plane
  49. Generate keywords
  50. Get angle between hour and minute hands
  51. Get Password from grid
  52. Get the Middle Character
  53. Going to the cinema
  54. Going to zero or to infinity?
  55. Good words
  56. Guess the list pattern #2
  57. Hero's root
  58. Hofstadter Q
  59. How many dots are covered
  60. How many e-mails we sent today?
  61. How many urinals are free?
  62. How Much?
  63. Human readable duration format
  64. Hungry Hippos
  65. Implement the (Unnormalized) Cardinal Sine
  66. IP Validation
  67. IPv4 Network and Broadcast Addresses
  68. Is my friend cheating?
  69. Is a point inside an random area...
  70. Is there a vowel in there?
  71. Is there an arrow missing ? (Relations - Part1: Reflexivity)
  72. Jaden Casing Strings
  73. John and Ann sign up for Codewars
  74. Largest Palindromic Product
  75. League Player Rank
  76. Linked Lists - Get Nth Node
  77. Linked Lists - Insert Nth Node
  78. List of all Rationals
  79. Looking for a benefactor
  80. MAC Address : Regexp
  81. Make sets
  82. Mirrored Exponential Chunks
  83. Mutual Recursion
  84. Mystery Class
  85. Object-Oriented PHP #1 - Classes, Public Properties and Methods
  86. Object-Oriented PHP #10 - Objects on the Fly [Advanced]
  87. Object-Oriented PHP #6 - Visibility
  88. Object-Oriented PHP #9 - Abstract Classes [Advanced]
  89. One Line Task: Largest Rectangle
  90. Ordered Count of Characters
  91. Over The Road
  92. Pattern Generator
  93. Pattern Generator (mirrored)
  94. People’s Travel Sorter (simplified)
  95. Perimeter of squares in a rectangle
  96. PHP Functions - Anonymous Functions (aka Closures)
  97. PHP Functions - Return Type Declarations
  98. PHP Functions - Type Declarations
  99. PHP Immutable
  100. PHP in Action #5 - PHPMailer Intro
  101. Pigs in a Pen
  102. Playing on a chessboard
  103. Points in the circle
  104. Pokemon Damage Calculator
  105. Pokerhand, straight or not?
  106. Pong! [Basics]
  107. Positions Average
  108. Principal Diagonal | VS | Secondary Diagonal
  109. Product of two squares
  110. Pull your words together, man!
  111. Rectangle into Squares
  112. Reflection in PHP #1 - Introduction
  113. Reflection in PHP #3 - Using Reflection on Classes
  114. Reflection in PHP #4 - Puzzle Challenge [Assessment]
  115. Regular expression for binary numbers divisible by 5
  116. Remove exclamation marks
  117. Removing Elements
  118. Reversed Strings
  119. RoboScript #4 - RS3 Patterns to the Rescue
  120. Roman Numerals Decoder
  121. Round To Nearest
  122. Same Array?
  123. Screen Locking Patterns
  124. Sectional Array Sort
  125. Selective memory
  126. Series of integers from m to n
  127. Shortest Distance to a Character
  128. Simple assembler interpreter
  129. Simple consecutive pairs
  130. Simple Fun #151: Rocks
  131. Simple Fun #87: Shuffled Array
  132. Simplifying multilinear polynomials
  133. Smallest possible sum
  134. Snakes and Ladders
  135. Sort by Last Char
  136. Square Pi's
  137. String Scramble
  138. Substituting Variables Into Strings: Padded Numbers
  139. Sum Arrays
  140. Sum Mixed Array
  141. Sum of Minimums!
  142. Sum of powers of 2
  143. Text align justify
  144. Texting with an old-school mobile phone
  145. The Skiponacci Sequence
  146. The Walker
  147. Tortoise racing
  148. Total amount of points
  149. Uglify Word
  150. URL building
  151. Wave Sorting
  152. We are Family
  153. Weight for weight
  154. Which x for that sum?

After changing assertEquals with assertSame to avoid this problem some katas failed the automatic change and require manual editing:

  1. A Rule of Divisibility by 7
  2. Area of an arrow
  3. Binary Genetic Algorithms
  4. Brainfuck Translator
  5. Buying a car
  6. Calculate mean and concatenate string
  7. Closest and Smallest
  8. Convert a String to a Number!
  9. Creating a custom PHP stream wrapper
  10. Disease Spread
  11. Driving School Series #2
  12. Easy Cyclist's Training
  13. Easy Line
  14. Euclidean distance in n dimensions
  15. Fibonacci, Tribonacci and friends
  16. Financing Plan on Planet XY140Z-n
  17. Find the Middle of the Product
  18. Find the area of the rectangle!
  19. FizzBuzz++
  20. Fun with lists: filter
  21. Fun with lists: map
  22. Functions of Integers on Cartesian Plane
  23. Heron's formula
  24. How good are you really?
  25. How many dots are covered
  26. League Player Rank
  27. Looking for a benefactor
  28. MAC Address : Regexp
  29. Molecule to atoms
  30. Mutual Recursion
  31. One Line Task: Largest Rectangle
  32. Ordered Count of Characters
  33. Parse a linked list from a string
  34. Pascal's Triangle
  35. Pattern Generator (mirrored)
  36. Program a Calculator #2 - 3D Vectors
  37. Quarter of the year
  38. Regex Tic Tac Toe Win Checker
  39. Regexp Basics - is it IPv4 address?
  40. Return the closest number multiple of 10
  41. Return the first M multiples of N
  42. Reverse polish notation calculator
  43. Screen Locking Patterns
  44. Send in the Clones
  45. Simple Fun #181: Rounding
  46. Simple Fun #74: Growing Plant
  47. Simple Fun #87: Shuffled Array
  48. Square Pi's
  49. Sum and Length
  50. Sum of Array Averages
  51. Sum of Intervals
  52. Sum of positive
  53. The Walker
  54. Tiny Three-Pass Compiler
  55. Tortoise racing
  56. Wave Sorting
  57. We are Family
  58. simple calculator