Amazing PHP
10.1K 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
Composer 2.0 released
The new composer version is available with a lot of new functionalities. Take a look at the news and update your Composer right now.
Remote jobs
Looking for a remote job? Remork is the best place to find remote jobs for Developer, Designer, Copywriter, Customer Support Rep, Sales Professional, Project Manager and more. Browse thousands of remote jobs today.

https://remork.co/
​​Hostman is a simple cloud hosting provider where you can deploy your PHP web application with just a few clicks:
- Sign up
- Connect your Git
- Auto deploy your app

You can run different types of applications on PHP using Hostman: APIs, background workers, cron jobs, private services, and more.

It provides some cool features like automated deploy from your GitHub or Bitbucket account, CI/CD out of the box, free SSL out of the box, Slack notifications, (plus free static website hosting).

- It is completely automated.
- After setting it up once, there is no need to manage it at regular intervals. You can focus on writing awesome codes.
- Supports Automatic Git Deployment out of the box, so you don’t need to configure.
- No Vendor Lock-In.

Hostman is now providing $50 worth of free credits to their early users! Register here: https://hostman.com/?coupon=php50
PHP 8.0.0 Release Candidate 3 available for testing - try out all new features
PHP 8 is already in it's release candidate stage, with RC 3 being released on October 29th, and the general availability release targeted for November 26th. So it is time to take a look at all the new and upcoming features of PHP 8. You can take a look at PHP 8's release schedule here.
Every feature that you see in this blogpost comes with an interactive embedded editor, where you can modify the PHP code and evaluate the results yourself.
Common PHP 8.0 Compilation Error Messages
With PHP 8.0 closing on us, it is high time to check our code bases to see if they compile, at least. Here is a list of common PHP 8.0 compilation messages, and what do to with them.

The errors have been found on a corpus of 1756 PHP projects. Any emitted error was compared to the result of the PHP 7.4 compilation. This means that those errors are fatal in PHP 8, while they were absent, or a warning in PHP 7.4. In both cases, in PHP 7.4, it used to be possible to brush them under the carpet, but not in PHP 8.0 anymore.
​​Unconventional Laravel article series
Join me as I go through some strange and unconventional things that you can do in your Laravel applications.
​​PHP 8 Released! Congratulations πŸŽ‰
PHP 8.0 is a major update of the PHP language.
It contains many new features and optimizations including named arguments, union types, attributes, constructor property promotion, match expression, nullsafe operator, JIT, and improvements in the type system, error handling, and consistency.
​​Hey bright developers!

Searching for a remote job doesn’t have to look like this:
❌ spending 24/7 scouring job boards
❌ turning LinkedIn upside down.
❌ waiting for recruiters to contact you.

Instead, the process should be more like this:
βœ… sign up on @sixnomads_bot.
βœ… state your tech stack, desired salary, and timezone.
βœ… receive relevant notifications for full-time and remote-only jobs as soon as they are posted.

Users of the 6nomads bot have already landed jobs in companies like MixMax, Calendly, Miro, as well as a number of YC and Techstars startups.

It's your turn next! Find your dream job now, say thank you later ❀️
Modern PHP Cheat Sheet
A to-the-point summary of all awesome PHP features
​​How to implement password recovery securely in PHP
This article aims to introduce PHP developers to the thought process of properly implementing security features. We’ve all been novice PHP developers at one point in our lives and thought that if there is an md5() in it, then it must be secure.
​​Symfony and Hexagonal Architecture
I have been working on many Symfony projects in my career and one of the most common problems where customers call our company is that their software is blocked in the old framework version, or they are not maintainable because it costs a lot to find and fix bugs.
Profiling PHP in production at scale
At Wikipedia, we built an efficient sampling profiler for PHP, and use it to instrument live requests. The trace logs and flame graphs are powered by a simple setup that involves only free open-source software, and runs at low infrastructure cost.
​​It is an argument, not a trojan horse!
Let's talk about something cool: trojan horse parameters. This is how I call this fancy technique which many of us, developers, might have used (or still doing). Ok, so what is it?
​​Happy New 2021 Year Everyone! πŸ₯‚πŸŽ‰
Object properties and immutability
There has been much discussion in recent weeks in PHP circles about how to make objects more immutable. There have been a number of proposals made either formally or informally that relate to object property access, all aimed at making objects safer through restricting write access in some way.
Mastering binary and bitwise in PHP
I recently caught myself working on different projects that required me to rely heavily on bitwise operations in PHP. From reading binary files to emulating processors, this is a very useful knowledge to have and a very cool one too.
​​Scaling PHP FPM based on utilization demand on Kubernetes
Ever since I've migrated to Kubernetes I've been working on a Matomo Helm chart. Part of that Helm chart is having autoscale it on how busy PHP FPM is, a.k.a. the percentage of busy workers.
Object properties and immutability
There has been much discussion in recent weeks in PHP circles about how to make objects more immutable. There have been a number of proposals made either formally or informally that relate to object property access, all aimed at making objects safer through restricting write access in some way.
Mastering binary and bitwise in PHP
I recently caught myself working on different projects that required me to rely heavily on bitwise operations in PHP. From reading binary files to emulating processors, this is a very useful knowledge to have and a very cool one too.
Building an Object Model: No setters allowed
If you are using an object relational mapper or any other database abstraction technology that converts rows to objects, then you will probably use getter/setter methods or properties (C#) to encapsulate object properties.