Amazing PHP
9.33K subscribers
11 photos
84 links
Welcome to the Amazing PHP Channel! Here you can find a lot of interesting articles/news about PHP, frameworks, tools and development.

Support the channel: https://www.paypal.com/donate?hosted_button_id=FAYP5QJH5LVRL
Download Telegram
Writing a Damn Good README File
Raise your hand if you’ve ever read a README file. Now, keep that hand raised if you’ve ever written a README file. I’m going to take a shot in the dark and assume that your hand is still raised; at least, it’s raised in spirit, since you probably refuse to flail your arms about like a crazy person just because I tell you to.
New in Symfony 5.1
A series of posts showcasing the new features introduced by each Symfony version.
Testing without mocking frameworks.
Over the years, my coding practices have changed a lot. From hacking away until it works to TDD/BDD/DDD and everything in between. One of the biggest changes in my developer career has been when, why, and how I test my code. In particular, my view on mocking frameworks has changed a lot. A couple of years ago I was convinced I could not live without them, now I wish I could do just that.
Circuit Breaker Pattern
In most systems, we use remote calls. Many factors may have an impact on these remote calls e.g. network latency, server availability and so on. So we should assume that something can go wrong. These calls can be potential bottlenecks, we don’t want user waiting for the response from the server very long, because external API is very slow or not available. Also if we have a few services which communicate with each other we shouldn’t aggravate the situation when one of them has too much traffic and slow down significantly. So how to do it correctly?
Functional tests, and speeding up the schema creation
When Symfony2 was created I first learned about the functional test, which is an interesting type of test where everything about your application is as real as possible. Just like with an integration or end-to-end test. One big difference: the test runner exercises the application's front controller programmatically, instead of through a web server. This means that the input for the test is a Request object, not an actual HTTP message.
Don't forget update
New releases: PHP 7.4.5, PHP 7.3.17, PHP 7.2.30
How to Migrate Spaghetti to 304 Symfony 5 Controllers Over Weekend
During Easter weekend, usually, people take a break and have a rest. Instead, we used these 4 days of holiday to migrate the 304-controller application. At least that was the goal on Friday.
Me in my colleague in the migrated project accepted the challenge. We got into many minds and code-traps. We'd like to share this experience with you and inspire those who are still stuck on non-MVC code and think it might take weeks or even months to switch to a framework.
Meet the new Symfony Security: Authenticators
After more than half a year of work and discussions, Symfony 5.1 ships with an experimental and revisited Security system. I’m incredibly excited about this system, as I think it opens up the component for a lot of possibilities. That’s why in the coming week, I’ll publish a series of blogposts about this new system. I hope you’ll be just as excited as I am and help realising the full potential with us!
Yii2 PHP Framework - Full Course (Build a YouTube Clone)
Yii is a fast, secure, and efficient PHP framework used to create all kinds of web apps. Learn how to use Yii2 in this full tutorial for beginners by building a YouTube clone.
Avoiding inheritance in Laravel
Over the past few years, I've paired with hundreds of developers on their Laravel projects. One of the most common regrets (technical debt) we encounter is the use of inheritance. While inheritance is one of the pillars of object oriented programming, it's actually less beneficial when used alongside a framework like Laravel.
Liskov Substitution Principle in PHP
PHP did not start as an Object Oriented Programming language, but over the years, PHP has improved with classes, namespaces, interfaces, traits, abstract classes, and other improvements that help developers write SOLID code.
The Bulletproof Event Naming For Symfony Event Dispatcher
I wrote intro to Symfony\EventDispatcher and how to use it with simple event.
But when it comes to dispatching events, you can choose from 4 different ways. Which one to choose and why? Today I will show you pros and cons of them to make it easier for you.
Weekly articles and news for back-end developers
Do you want to receive a ton of useful articles, news and videos related to PHP and the back-end development?
Join to us!
How does Laravel Jobs get queued?
To understand how Laravel Jobs gets into a queue driver, you’ll first need to know OOP. Let's check PHP Object’s lifecycle first.
Creating Reusable Bootstrap Elements With Laravel's Make:Component
Bootstrap is a good system for getting an application’s layout started and it comes with lots of helpful user interface elements that we can use in our application. The downside, is there tends to be a lot of duplication in our source code to support these elements. Thankfully, Laravel added components in the 7.x branch which will allow us to reduce that duplication.
FREE access to articles and videos related to the back-end development.
Do you want to get a ton of useful articles, news and videos every week?
Just join to us and receive most interesting and useful information about PHP and the back-end development.
​​Builders and architects: two types of programmers
You're probably familiar with the feeling: a programmer in your vicinity or online just doesn't seem to get your point of view. Even though there's no doubt they are clearly wrong. These kinds of encounters make you feel misunderstood, frustrated, yes, even angry.
How to Manage ACLs in Symfony the Easy Peasy Way
It's no secret ACLs can be tricky. Since voters seem to be the alternative to ACLs recommended by Symfony, I recently decided that I'd write my own easy-to-use Symfony 5 bundle to manage access control lists (ACL) in my applications.
If you mock, are you even testing?
Have you ever felt like you’re making the code harder to read for the sake of testing?
Imagine, you have this existing code and it’s not tested. It does a bunch of side-effects. People say you should put that code under tests before touching it.
We create our database of articles
We think that it is not right to tell you what to read and what not, because different developers interest different things and they have a different level of knowledge. We created a simple project that allows you to search articles and never lose them.
Everyday we add a lot of new and useful articles for you. We hope you'll like it and we open for your feedback.