Amazing PHP
9.94K 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
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.
7 Best Courses to Master Git and Github for Programmers
These are the best courses to learn Git from scratch and also advanced concepts like branching and merging. It also includes a free course to learn git
Software Complexity: Naming
Good writing is hard. But why? Because good writing is about good reading. We tend to focus on the former and forget the latter. We forget that code is written only once, but read many times.
Everything you need (and don't need) to know about PHP's type system
PHP is a dynamically typed scripting language and until the year of 2015 php had no support for statically declared types at all. One could cast to scalar types explicitly in the code, but declaring scalar types in methods and functions signatures wasn't a thing until PHP 7.0 with the Scalar Type Declarations and Return Type Declarations rfcs.
Enhancements to PHP code coverage in 2020
In 2003, with the release of Xdebug 1.2, Derick Rethans introduced the ability to collect code coverage data to the PHP ecosystem for the first time. In 2004, with the release of PHPUnit 2, Sebastian Bergmann made the first real use of this new power by allowing developers to evaluate the effectiveness of their test suites by generating coverage reports.
Clean Code (Robert C. Martin)
Noted software expert Robert C. Martin presents a revolutionary paradigm with "Clean Code: A Handbook of Agile Software Craftsmanship." Martin has teamed up with his colleagues from Object Mentor to distill their best agile practice of cleaning code "on the fly" into a book that will instill within you the values of a software craftsman and make you a better programmer--but only if you work at it.
Modernizing a Legacy PHP Application
Recently, I had the occasion to work on numerous legacy PHP applications. I spotted common anti-patterns that I had to fix. This article is not about rewriting an old PHP application to <insert shiny framework name here>, but about how to make it more maintainable and less of a hassle to work on.
​​Testing Microservices in PHP with Codeception
Not all PHP applications can be developed as a monolith.
An application grows, as well as the engineering team around it, and at some point, in order to keep things consistent, a decision is made to split the application into microservices.
Common Security Mistakes in Laravel Applications (book)
Most of the time security vulnerabilities are only the result of lack of awareness, not negligence. While we find that the majority of developers deeply care about security, sometimes they do not realize how a particular code pattern can lead to a vulnerability, so in the e-book, we decided to share most common security issues that we saw during many years of helping different startups to secure their Laravel applications. With every attack vector, we also will show best practices on how to protect your application from the attack. We hope you find the information useful for you and your dev team.
A decoupled PHP architecture inspired by the Clean Architecture
I feel like I should address that the architecture I’m about to present already existed when I arrived at Arquivei, almost two years ago and didn’t change much since. I didn’t create it, but I did learn a lot from it. Hopefully, you will too.
​​Turbocharged PHP Development with Xdebug, Docker & PHPStorm
A simple recipe for framework decoupling
If you want to write applications that are maintainable in the long run, you have to decouple from your framework, ORM, HTTP client, etc. because your application will outlive all of them.
​​Performance Impact of PHP Exceptions
Exceptions in programming languages provide a way for the application code to raise and handle exceptional situations, and PHP language is not an exception.