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.
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.
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.
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.
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.
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.
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.
Exceptions in programming languages provide a way for the application code to raise and handle exceptional situations, and PHP language is not an exception.
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.
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.
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.
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.
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.
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.
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.
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.
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
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
serverspace.us
Cloud service for Developers in the USA | Serverspace
Cloud IT infrastructure rental service in the USA: 10-minute billing cycle, enterprise-class equipment, 99,9% SLA, 4 Data centers, 24/7 support.
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.
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/
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/
remork.co
Remote jobs in programming, design, marketing etc.
Looking for a remote job? Remork is the best place to find and list remote jobs for Developer, Designer, Copywriter, Customer Support Rep, Sales Professional, Project Manager and more. Browse thousands of remote work jobs today.
ββ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
- 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.
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.