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
Refactoring PHP
Refactoring is the process of modifying and restructuring code without changing its functionality. When I first heard about it, I was like: Why would anyone do that? It took some years until I fully understood the concept and that the working code is not always good. So with refactoring, you can make working code better, and what better means is something developers will argue for hours. In the end, you have to define it for yourself.
​​SOLID in PHP
What is SOLID?
It is a set of principles to have good software design practices compiled by Uncle Bob.
​​Writing better Controllers
Controllers are a very important part of our software. In desktop apps, they coordinate the application, receiving, parsing and storing data, they perform the business logic and bidirectionally communicate with the view. However, when it comes to web applications they are the entrypoint, which means they play a different role than in desktop apps. In this post we’ll look at how writing controllers differently will lead our code to be more flexible, readable and easy to change.
How Static Methods Kill You Like Corona
It's September here, and many of friends walked their children to the school. Some for the first time in their life. Everyone is very cautious because it takes precisely 1 corona-infected child, parent, or teacher to spread to another person very effectively.
Running Laravel on DigitalOcean's App Platform
Today DigitalOcean App Platform entered general availability and they offer support for PHP/Laravel apps out of the box. Read on for a deep dive and explore the pros and cons of DigitalOcean's new app platform with me.
​​Profiling PHP Applications with Xdebug | Rawkode Live
In this episode, joined by Derick Rethans, we take a look at Xdebug and how it help you profile your PHP applications, allowing you to use a profiling front-end, like qcachegrind, to visualise your call graphs and dig into the bottlenecks of your applications.
Clean Code PHP
Software engineering principles, from Robert C. Martin's book Clean Code, adapted for PHP. This is not a style guide. It's a guide to producing readable, reusable, and refactorable software in PHP.

Not every principle herein has to be strictly followed, and even fewer will be universally agreed upon. These are guidelines and nothing more, but they are ones codified over many years of collective experience by the authors of Clean Code.
PHP 8.0.0 Release Candidate 2 available for testing
The PHP team is pleased to announce the ninth testing release of PHP 8.0.0, Release Candidate 2.
Have you heard about Serverspace.us? πŸ€”
Cloud works on innovative hyperconverged vStack platform based on superior Open Source technologies πŸ€“
Lightweight bhyve hypervisor and OS FreeBSD with simplified codebase help build new generation virtual machines.

Features:
πŸ‘Easiest sign-up - only thing that you need is email
🀝 Windows & Linux OS
🦾Based on the latest 2nd Gen Intel Scalable CPUs with 3.1 GHz frequency
⚑️ Fast-speed SSD's with awesome IOPS rate
βŒ›οΈΠ‘reate & Spin up in 40 seconds
πŸ”§24/7/365 Tech Human Support
πŸ“ˆNo fixed plans. Charges every 10 minutes

πŸ’°You can use coupon code: amazing_php and you will get 100% off the first payment.

https://bit.ly/359qAOE
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.