-
Notifications
You must be signed in to change notification settings - Fork 221
List of PHP Kata to Update to PHP 7.4
Steffan153 edited this page Apr 23, 2020
·
10 revisions
PHP 7.4 with PHPUnit 9 was added. The kata on this page needs to be updated manually. Any help is appreciated!
- Files are no longer concatenated, but it should work very similarly as before
- Runner detects the appropriate file name to be loaded with
psr-4
convention. - If the file does not declare a class, it's written to
_solution.php
or_preloaded.php
which is autoloaded
- Runner detects the appropriate file name to be loaded with
- 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
- Runner prepends this if
- PHPUnit is updated to 9.1 so there are some breaking changes
- Alphabet war
- Backwards Read Primes
- Balanced Number (Special Numbers Series #1 )
- Ball and Cups
- Ball Upwards
- Banker's Plan
- Basic Mathematical Operations
- Basic variable assignment
- Basics 08: Find next higher number with same Bits (1's)
- Battle of the characters (Easy)
- Beginner - Lost Without a Map
- Best travel
- Bin to Decimal
- Binary multiple of 3
- Bit Counting
- Bits Battle
- Bleatrix Trotter (The Counting Sheep)
- Bouncing Balls
- Brainfuck Translator
- Braking well
- Breaking chocolate problem
- Brick pyramid.
- Buddy Pairs
- Build a Directory
- Build a pile of Cubes
- Build a square
- Bumps in the Road
- Buying a car
- By 3, or not by 3? That is the question . . .
- Caesar Cipher Helper
- Calculate Price Excluding VAT
- Calculate the area of a regular n sides polygon inside a circle of radius r
- Calculate the stars
- Car Park Escape
- Car Wars
- Cartesian neighbors
- Catalog
- Century From Year
- Challenge Fun #14: Target Game
- Champernowne's Championship
- Check three and two
- Ciphers #1 - The 01 Cipher
- Circularly Sorted Array
- Classic Hello World
- Closest and Smallest
- Closest elevator
- Coding with Squared Strings
- Color Choice
- Common Denominators
- Compare Strings by Sum of Chars
- Composing squared strings
- Computer problem series #1: Fill the Hard Disk Drive
- Connect 4
- Connect Four
- Consecutive k-Primes
- Consecutive strings
- Consonant value
- Convert a Number to a String!
- Convert a String to a Number!
- Convert an array of strings to array of numbers
- Convert boolean values to strings 'Yes' or 'No'.
- Convert string to camel case
- Coordinates Validator
- Correct the date-string
- Correct the mistakes of the character recognition software
- Correct the time-string
- Count by X
- Count Odd Numbers below n
- Count of positives / sum of negatives
- Count the Digit
- Count the divisors of a number
- Count the Monkeys!
- Count the smiley faces!
- Count up the points for the 7 Wonders board game! Easy version
- Counting Duplicates
- Counting like a kid.
- Create Phone Number
- Creating a custom PHP stream wrapper
- Cryptography #1 - Viva Cesare
- Currying vs. Partial Application
- Cut array into smaller parts
- d To Capital
- Dashatize it
- Debug the functions EASY
- Decimal to Factorial and Back
- Decipher this!
- Decode the Morse code
- Deodorant Evaporator
- Descending Order
- Detect Pangram
- Determine if the poker hand is flush
- Determine offspring sex based on genes XX and XY chromosomes
- Difference of Volumes of Cuboids
- Diophantine Equation
- Directions Reduction
- Disarium Number (Special Numbers Series #3)
- Disease Spread
- Disguised sequences (II)
- Divide numbers as strings
- DNA to RNA Conversion
- Do I get a bonus?
- Domain name validator
- Don't rely on luck.
- Double Trouble
- Draw a Circle.
- draw me a chessboard
- Drawing a cube
- Driving Licence
- Drying Potatoes
- Duplicate Encoder
- Ease the StockBroker
- Easy Balance Checking
- Easy Cyclist's Training
- Easy Diagonal
- Easy Line
- Easy wallpaper
- EGG SHARING
- Emily's Eccentric Encoding
- Equal Sides Of An Array
- Errors : histogram
- Esolang Interpreters #1 - Introduction to Esolangs and My First Interpreter (MiniStringFuck)
- Esolang: InfiniTick
- esreveR
- Euler's method for a first-order ODE
- Evaluate mathematical expression
- Exes and Ohs
- Experimenting with a sequence of complex numbers
- Expressions Matter
- Extra Perfect Numbers (Special Numbers Series #7)
- extract file name
- Factorial decomposition
- Factorial tail
- Family Gift Exchange / Names Out of a Hat
- Faro Shuffle Count
- Fibo akin
- File Path Operations
- Filter out the geese
- Filter valid romans
- Financing a purchase
- Financing Plan on Planet XY140Z-n
- Find all pairs
- Find Duplicates
- Find Grid Position
- Find how many times did a team from a given country win the Champions League?
- Find numbers which are divisible by given number
- Find out whether the shape is a cube
- Find the Difference in Age between Oldest and Youngest Family Members
- Find the K-th last element of a singly linked list
- Find the Middle of the Product
- Find the missing term in an Arithmetic Progression
- Find the odd int
- Find The Parity Outlier
- Find the Remainder
- Find the smallest
- Find the smallest integer in the array
- Find the stray number
- Find twins
- First Variation on Caesar Cipher
- Fix string case
- FIXME: Get Full Name
- FizzBuzz++
- Flatten and sort an array
- Floating-point Approximation (I)
- Floating-point Approximation (II)
- Floating-point Approximation (III)
- Fluent Calculator
- Follow that Spy
- Form The Largest
- Form The Minimum
- Formatting decimal places #0
- Friday the 13th Part 1
- Fruit Machine
- Function 1 - hello world
- Function 3 - multiplying two numbers
- Functions of Integers on Cartesian Plane
- Gap in Primes
- Generate keywords
- Genetic Algorithm Series - #5 Roulette wheel selection
- Get angle between hour and minute hands
- get character from ASCII Value
- Get Nth Even Number
- Get Password from grid
- Get the Middle Character
- Getting along with Integer Partitions
- Going to the cinema
- Going to zero or to infinity?
- Good words
- Grasshopper - Check for factor
- Grasshopper - Grade book
- Grasshopper - If/else syntax debug
- Grasshopper - Messi goals function
- Grasshopper - Terminal game combat function
- Grasshopper - Terminal game move function
- Grouped by commas
- Growth of a Population
- Guess the list pattern #1
- Guess the list pattern #2
- Help the bookseller !
- Help the Fruit Guy
- Help your granny!
- Hero's root
- Heron's formula
- Hidden "Cubic" numbers
- Highest and Lowest
- Highest Scoring Word
- Hofstadter Q
- Holiday II - Plane Seating
- How good are you really?
- How Green Is My Valley?
- How many arguments
- How many cows do you have?
- How many dots are covered
- How many e-mails we sent today?
- How many lightsabers do you own?
- How many stairs will Suzuki climb in 20 years?
- How many times does it contain?
- How many urinals are free?
- How Much?
- Human readable duration format
- Hungry Hippos
- If you can read this...
- If you can't beat 'em, join 'em!
- If you can't sleep, just count sheep!!
- Implement the (Unnormalized) Cardinal Sine
- Incrementer
- Integers: Recreation One
- Integers: Recreation Two
- IP Validation
- IPv4 Network and Broadcast Addresses
- Irreducible Sum of Rationals
- Is my friend cheating?
- Is a point inside an random area...
- Is he gonna survive?
- Is it Integer?
- Is that a real phone number? (British version)
- Is the string uppercase?
- Is there a vowel in there?
- Is there an arrow missing ? (Relations - Part1: Reflexivity)
- Is this my tail?
- Is your period late?
- Isograms
- Jaden Casing Strings
- Jenny the youngest detective
- Jenny's secret message
- John and Ann sign up for Codewars
- Jumping Number (Special Numbers Series #4)
- k-Primes
- Kebabize
- Killer Garage Door
- Kooka-Counter
- L1: Set Alarm
- Land perimeter
- Langton's ant
- Largest Palindromic Product
- Lario and Muigi Pipe Problem
- League Player Rank
- Leap Years
- Length of missing array
- Linked Lists - Append
- Linked Lists - Get Nth Node
- Linked Lists - Insert Nth Node
- Linked Lists - Push & BuildOneTwoThree
- Linux history and
!
command. Series#1 The!!
command - List of all Rationals
- Looking for a benefactor
- Loose Change!
- Lost number in number sequence
- Lucky Bus Ticket
- Lunar Bombing Run
- MAC Address : Regexp
- Magnet particules in boxes
- Make sets
- Make the Deadfish swim
- Manage the Robot Factory: Day 1
- Matching And Substituting
- Maximum Gap (Array Series #4)
- Maximum Length Difference
- Maximum Multiple
- Maximum Product
- Maximum Triplet Sum (Array Series #7)
- Maze Runner
- Meeting
- Mexican Wave
- Minimize Sum Of Array (Array Series #1)
- Minimum Steps (Array Series #6)
- MinMinMax
- Mirrored Exponential Chunks
- MOBA game rage simulator
- MOD 256 without the MOD operator
- Moduli number system
- Morse Code (translate text to and from morse code)
- Moves in squared strings (I)
- Moves in squared strings (II)
- Moves in squared strings (III)
- Moves in squared strings (IV)
- MTV Cribs
- Multiples of 3 or 5
- Multiply
- Mumbling
- Mutual Recursion
- My head is at the wrong end!
- Mystery Class
- New Cashier Does Not Know About Space or Shift
- Nice Array
- Not very secure
- Now that's a crib!
- nth Floyd line
- Nth Smallest Element (Array Series #4)
- Number of diagonals
- Number of People in the Bus
- Numbers in strings
- Numbers to Letters
- Numbers with this digit inside
- Object-Oriented PHP #1 - Classes, Public Properties and Methods
- Object-Oriented PHP #10 - Objects on the Fly [Advanced]
- Object-Oriented PHP #6 - Visibility
- Object-Oriented PHP #8 - Interfaces [Advanced]
- Odd Ones Out!
- Offload your work!
- One Line Task: Largest Rectangle
- Ones and Zeros
- Opposites Attract
- Ordered Count of Characters
- Pairs of integers from m to n
- Palindrome Strings
- Parabolic Arc Length
- Parse nice int from char problem
- Parts of a list
- Pattern Generator
- Pattern Generator (mirrored)
- People’s Travel Sorter (simplified)
- Perimeter of squares in a rectangle
- Phone Directory
- PHP Functions - Anonymous Functions (aka Closures)
- PHP Functions - Return Type Declarations
- PHP Functions - Type Declarations
- PHP Immutable
- PHP in Action #5 - PHPMailer Intro
- PI approximation
- Pie Chart
- Pigs in a Pen
- Pillars
- Playing on a chessboard
- Playing with digits
- Playing with passphrases
- Plenty of Fish in the Pond
- Points in the circle
- Pokemon Damage Calculator
- Pokerhand, straight or not?
- Pong! [Basics]
- Positions Average
- Predict your age!
- Primes in numbers
- Primorial Of a Number
- Principal Diagonal | VS | Secondary Diagonal
- Printer Errors
- Prize Draw
- Product Array (Array Series #5)
- Product of Adjacent Grid Numbers
- Product of consecutive Fib numbers
- Product Of Maximums Of Array (Array Series #2)
- Product of two squares
- Pull your words together, man!
- Pyramid Array
- Quarter of the year
- Rainfall
- Ranking NBA teams
- Ranking position
- Rectangle into Squares
- Reducing by steps
- Reflection in PHP #3 - Using Reflection on Classes
- Reflection in PHP #4 - Puzzle Challenge [Assessment]
- Regexp Basics - is it IPv4 address?
- Regular Expression - Check if divisible by 0b111 (7)
- Regular expression for binary numbers divisible by 5
- Remove anchor from URL
- Remove duplicate words
- Remove exclamation marks
- Remove the time
- Removing Elements
- Return Negative
- Returning Strings
- Reverse every other word in the string
- Reverse or rotate?
- Reverse words
- Reverse words of a big string
- Reversed sequence
- Reversed Strings
- Reversed Words
- RGB To Hex Conversion
- RoboScript #4 - RS3 Patterns to the Rescue
- Rock Paper Scissors!
- Roman Numerals Decoder
- Roman Numerals Encoder
- Rotate for a Max
- Round To Nearest
- Row Weights
- Salesman's Travel
- Same Array?
- Scaling Squared Strings
- Scrolling Text
- Second Variation on Caesar Cipher
- Sectional Array Sort
- Sections
- Security : Sensitive Data Exposure
- See You Next Happy Year
- Selective memory
- Series of integers from m to n
- Shortest Distance to a Character
- Shortest Word
- Simple assembler interpreter
- Simple Encryption #1 - Alternating Split
- Simple Fun #1: Seats in Theater
- Simple Fun #111: Reverse Brackets
- Simple Fun #13: Magical Well
- Simple Fun #132: Number Of Carries
- Simple Fun #144: Distinct Digit Year
- Simple Fun #151: Rocks
- Simple Fun #165: Withdraw
- Simple Fun #176: Reverse Letter
- Simple Fun #181: Rounding
- Simple Fun #203: Strange Coach
- Simple Fun #27: Rectangle Rotation
- Simple Fun #72: Absolute Values Sum Minimization
- Simple Fun #74: Growing Plant
- Simple Fun #75: Digit Degree
- Simple Fun #79: Delete a Digit
- Simple Fun #87: Shuffled Array
- Simple multiplication
- Simple remove duplicates
- Simplifying multilinear polynomials
- Simpson's Rule - Approximate Integration
- Simultaneous Equations - Three Variables
- Sliding Puzzle Solver
- Small enough? - Beginner
- Smallest possible sum
- Snakes and Ladders
- SNAP
- Some Egyptian fractions
- Sort and Star
- Sort by Last Char
- Sort Out The Men From Boys
- Special Number (Special Numbers Series #5)
- Speed Control
- Split Strings
- Square into Squares. Protect trees!
- Square Pi's
- Square(n) Sum
- Stacked Balls - 2D
- Statistics for an Athletic Association
- Steps in k-primes
- Steps in Primes
- Stop gninnipS My sdroW!
- String ends with?
- String Merge!
- String prefix and suffix
- String repeat
- String Scramble
- Strings Mix
- STRONGN Strong Number (Special Numbers Series #2)
- Student's Final Grade
- Substituting Variables Into Strings: Padded Numbers
- Sum Arrays
- Sum by Factors
- Sum Mixed Array
- Sum of a Beach
- Sum of all arguments
- Sum of angles
- Sum of Array Averages
- Sum of Minimums!
- Sum of numbers from 0 to N
- Sum of odd numbers
- Sum of powers of 2
- Sum of Two Integers
- Sum up the random string
- Sum without highest and lowest number
- Sums of Parts
- Super Duper Easy
- Surface Area and Volume of a Box
- Switch case practicing
- Switch it Up!
- T.T.T.32: Count with your fingers
- Tank Truck
- Target Date
- Text align justify
- Texting with an old-school mobile phone
- The Baum-Sweet sequence
- The Best Combination
- The Deaf Rats of Hamelin
- The Hashtag Generator
- The iccanobiF Sequence
- The observed PIN
- The PaperFold sequence
- The Poet And The Pendulum
- The Skiponacci Sequence
- The Walker
- The Wide-Mouthed frog!
- Thinkful - List Drills: Longest word
- Thinkful - Number Drills: Rømer temperature
- Thinkful - String Drills: Repeater
- Third Angle of a Triangle
- Tidy Number (Special Numbers Series #9)
- To square(root) or not to square(root)
- Tom's Allergies
- Tortoise racing
- Total amount of points
- Tribonacci Sequence
- TV Remote
- Twice as old
- Twice linear
- Two Oldest Ages
- Two to One
- Uglify Word
- Unique In Order
- up AND down
- upperCasePlace()
- URL building
- URL parsing
- Valid Braces
- Validate IPv4 and IPv6
- Very Basic Inheritance
- Vigilante Lists
- Volume of a Cuboid
- Vowel Count
- Vowel Shifting
- Wave Sorting
- We are Family
- Weight for weight
- Weird prime generator
- WeIrD StRiNg CaSe
- Well of Ideas - Harder Version
- Which are in?
- Which x for that sum?
- Who likes it?
- Will there be enough space?
- Word Count
- World Bits War
- You Can't Code Under Pressure #1
- You only need one - Beginner