Amazing PHP
9.31K 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
Slack App with Laravel
You always wanted to know how to create a Slack app?
Well, who doesn’t want to?
How to Analyze Tweet Sentiments with PHP Machine Learning
As of late, it seems everyone and their proverbial grandma is talking about Machine Learning. Your social media feeds are inundated with posts about ML, Python, TensorFlow, Spark, Scala, Go and so on; and if you are anything like me, you might be wondering, what about PHP?
Building Scalable Applications Using Event Sourcing and CQRS
About a year ago, I came across the terms event sourcing and CQRS. I have been fascinated by it ever since. Right now, I am in the middle of building out event-driven microservice infrastructure at Andela using event sourcing. Check out Building Out an Antifragile Microservice Architecture @ Andelaβ€Šβ€”β€ŠDesign Consideration; my previous blog post to find out some of the design consideration we had to make.
UDP/Datagram Sockets with ReactPHP
When you send data through the sockets, there are situations when you really do not care if some packets are lost during the transition. For example, you are streaming a live video from your camera. The order of the frames is less important than timely delivery, you only want the frames to arrive at the clients as soon as possible. And it also does not matter if some of the frames are lost. You are not going to make a resend request just to make sure that all the frames are shown to the client in the correct order because otherwise your live video will be delayed.
Chronicle Will Make You Question the Need for Blockchain Technology
"Blockchain" is one of the hottest technology industry buzz-words of 2017. A lot of time, money, and engineering talent is being invested into building blockchain technologies. Despite the name, blockchain has nothing to do with the Cipher Block Chaining mode of encrypting large messages with a block cipher; instead, it's used to refer to a specific type of ledger, and more specifically to crypto-currencies like Bitcoin and Zcash.
Building Video Streaming Server with ReactPHP
In this article, we will build a simple asynchronous video streaming server with ReactPHP. ReactPHP is a set of independent components which allows you to create an asynchronous application in PHP. ReactPHP Http is a high-level component which provides a simple asynchronous interface for handling incoming connections and processing HTTP requests.
Poka Yoke – Saving Projects with Hyper-Defensive Programming
When working in a medium to large team on the same codebase, it can sometimes become hard to understand each other’s code and how to use it. Various solutions exist to help with this. For example, you can agree to follow a set of coding standards to make the code more readable for each other, or use a framework that’s known to all.
Don't call instance methods statically
There are quite a few things in PHP 4 that were a bit strange. One example is that PHP 4 allowed static calling of instance methods
TheCodingMachine Best Practices
At TheCodingMachine we write code. We read code too... a lot. This is because we use GIT and "pull-requests". For each project, the code has to be reviewed by someone before being pushed to the main branch. Very often, code reviewers are making the same comments, over and over. Hence the idea to create a website about our best practices.
5 Benefits of Immutable Objects Worth Considering for Your Next Project
When first learning object oriented programming (OOP), you typically create a very basic object and implement getters and setters. From that point forward, objects are this magical world of malleable data. However, you’d be surprised to find that sometimes removing the ability to alter the data in an object can lead to more straightforward and easier to understand code. This is the case with immutable objects.
How to Build a Class Booking System with Acuity Scheduling
I recently wrote an article about building an online class booking system to book lessons with a driving instructor. Teaching someone to drive is relatively unique, in that it’s guaranteed to be a one-to-one class β€” or at least, if you did find yourself sharing an instructor’s time, then you’d have every right to feel short-changed.
Re-Introducing PHPUnit – Getting Started with TDD in PHP
This article aims to re-introduce the tool in a modern way, to a modern audience, in a modern PHP environment – if you’re unfamiliar with PHPUnit or testing, this post is for you.
Good code is its own best documentation
If your code is self-explanatory, there’s no need for comments and documentations, most of the time.
Writing Better Tests: Riding The Command Bus
Before writing any line of test code we should think of how meaningful this test would be. The best code is the code you never write, you know. So if you ever begin to think of which parts of the application you should cover with tests.
Application logic done right
Typically small http applications does only have to manage HTTP communication on top of a tiny MVC-Framework. A client performs a request, which is handled by a controller. The controller invoke the model and assigens the result data to a view. The controller converts the view into a response and delivers the response back to the client.
What's new in PHP7.2
PHP 7.2 UPGRADE NOTES
Refactoring.Guru
Refactoring.Guru is a shiny website where you can find tons of information on refactoring, design patterns, SOLID principles and other smart programming topics.
How to Master Your API Workflow with Postman
Building good APIs is hard, and anyone who had the chance to do so can relate to this. A project can easily grow to become a mess. One can keep trying to adopt an approach to make it more enjoyable, like trying a documentation-first workflow, but something always feels clumsy.
How PHP Frameworks Build Better Enterprise Software
There’s an unwritten rule for talking about enterprise software. One must always tiptoe around the topic and weigh one’s words carefully. Otherwise, the status quo is broken, risking the integrity of the whole idea.
Why has this been the reality of corporate software for so long?
Are Bitwise Operators Still Relevant in Modern PHP?
Many of you probably scratched your heads reading this title. β€œBitwhat?”
In this article, we’ll look at what bitwise operators are, and whether or not their use is still relevant in this modern age of computing.
Slim and Action-Domain-Responder
I’ve had a warm place in my heart for Slim for a long time, and especially so since recognizing the Action-Domain-Responder pattern. In this post, I’ll show how to refactor the Slim tutorial application to ADR.