
Gert de Pagter
@BackEndTea
Followers
573
Following
5K
Media
79
Statuses
2K
PHP Developer | I write a weekly blog about PHP development
Joined November 2017
Properly typing your arrays can improve your code a lot, read about it here: #PHP.
backendtea.com
We have been able to natively type parameters of methods and functions in PHP for quite some time. In basically any version of PHP you should be running we can do something like the following:
1
1
5
Ever wondered what `declare(strict_types=1)` does in #PHP ?.
backendtea.com
declare(strict_types=1) makes your code more strict, but what does it actually do?
0
0
1
Learn how to generate a random string in #PHP. Since PHP 8.2 there are more options to generate a secure random string. This post will explain how you can do so!.
backendtea.com
Use the Randomizer class to generate a random string, based on an input string.
0
0
2
RT @BackEndTea: Test multiple scenarios quickly, and reduce code duplication with data providers in #PHPUnit #PHP….
backendtea.com
Learn how to use data providers in PHPUnit, to test a lot of scenarios and reduce code duplication
0
1
0
Test multiple scenarios quickly, and reduce code duplication with data providers in #PHPUnit #PHP #unittest.
backendtea.com
Learn how to use data providers in PHPUnit, to test a lot of scenarios and reduce code duplication
0
1
1
I'm writing a series on #PHPUnit this week is a basic introduction:
backendtea.com
In this blog series we’ll go from writing our first unit test to being a PHPUnit master. This first post will go over the basics, and introduce you to PHPUnit
0
1
6
RT @davert: The #frontend thing I learned today. If you handle onclick event in #javascript and you want to preventDefault or stopPropagat….
0
4
0
Anyone have some guides/blogs on converting an app without a framework to #Symfony? Its not flat php files, but a kinda homebrew framework.
4
1
2