PHP 7.4 brings a lot of exciting new features. One of them is the Foreign Function Interface extension built directly into the core. But what problems exactly this extension is trying to solve? Does this mean that we no longer need to write a PHP extension if we want to use an existing library? In this article, we will discover how to call almost any C library directly from PHP easily, how to overcome common pitfalls, when to use this approach, and most importantly, when not.
When developing an application, our aim as software developers is to make sure it does what it ought to do and to keep the number of defects as low as possible. We should also strive to make our lives easier, to counter external circumstances like tight deadlines and ever-changing requirements causing the exact opposite. That’s why we’re always looking out for tools and practices to help us with our jobs.
When it comes to learning how best to use exceptions in PHP, it is very difficult to find anything more than very basic explanations and tutorials online. While the consensus is that you should use exceptions indeed, there is very little information on how to structure and manage them in a larger codebase. The larger and more complex your projects become, the more important it is to start with a proper structure to avoid expensive refactoring later on. Your client will surely be thankful!
Being the author of BaseCode and creator of Shift gives me a unique insight into writing Laravel applications. I combined 20 years of writing code with supporting over 20,000 Laravel upgrades into 10 tips for crafting maintainable Laravel applications. These may seem fundamental and as such easily dismissed. But any lasting Laravel codebase practices these fundamental elements. Put simply, the more tips you follow the more maintainable your codebase will be.
Clean Code vs. Legacy Code. And ever again the dark side of coding spreads further and essentially endangers the sanity of us developers. We come to stop trusting our own code. That increases the pressure on us considerably. Eventually, everything is to run smoothly without causing further costs. That’s exactly what the customer wants. And “technical dept” can quickly become dangerous – even in smaller projects.
The PHP programming language was released in 1995, meaning it’s celebrating a quarter of a century in 2020. To mark the occasion, we asked four PHP experts and International PHP Conference 2019/2020 speakers what role PHP plays for them today. According to many statistics PHP is on the way down – but our experts disagree.
In this talk and demo, Ben will show how implementing an identity provider and using OAuth and OpenID Connect can allow you to ramp up your prototypes and MVPs with more ease and to concentrate on the core purpose of the APIs , rather than the layers of security that are a must in today’s digital world.
DDEV-Local developed by DRUD Technology LLC is a great solution to simplify and unify the entire local PHP development environment in teams, agencies, and communities. The open source tool is compatible with many popular CMS solutions, among others. In addition, DDEV can link the PHP programming language with the cutting-edge world of containers, DevOps and company, significantly reducing the complexities associated with it.