While the rest of the web community looks at the new possibilities coming to the web recently, PHP developers have always been ahead of the curve—being the language behind the golden age of the early internet.
This week we look at some of the early innovations built into PHP early on, that the rest of the web seems to be catching up to.
Mixing templating and logic. HTML templating was first introduced in C and then adopted by Rasmus Lerdorf when creating PHP. Using render functions and models made it easier to couple your data layer with your UI.
Although libraries like EJS showed us what was possible, modern ones like React and Vue have made it popular.
URL based routing & Invocation. When someone hits an endpoint or a URL in PHP, a script is automatically executed, which can be used to either render your UI client-side or run logic. Very similar to the same way serverless functions work today.
All in one framework. CakePHP, Laravel are just some of the frameworks built on top of PHP that offer developers conventions, auth and have a rich community of plugins that allow you to extend the capabilities of your PHP application.
Server-side rendering, Direct access to the DB and standard libraries are just a few things that PHP has inspired for the rest of the web to adopt today. Here is a podcast episode by the guys at Syntax that delves more into those concepts and is what inspired this weeks issue.
Next remains probably one of the most exciting projects in the ecosystem, and a few weeks ago, the Vercel team hosted Nextjs Conf to justify that excitement. Announcing edge functions, presenting examples and previewing some interesting future features. Here are some of the key announcements.
Middleware, anything that needs to share logic on either the client or server. The middleware feature will allow you to that do so much easier because it’s now a built-in feature. Here are some examples.
Server-side components, we all know how game-changing server components in React will be once it arrives, and it seems like Nextjs understands that. Although it’s in beta, this brings a lot, like removing functions like getServersideProps, selective hydration and a string of other features.
Vercel’s mission to build the SDK for the web with Nextjs doesn’t seem like a far-fetched idea. As React sets to improve, so will Nextjs as a framework, slowly unlocking the web’s full potential.
You can go through the upgrade guide to start using it today.
There’s a lot that goes into building a full-blown application, authentication, build processes, and real-time analytics are just a few of the things teams will find themselves inevitably adding to their applications.
AWS Amplify is a service that makes that easier to do by providing developers manage and scale their cloud infrastructure—giving you a number of other services within AWS to take of your API infrastructure, push notifications and even add Machine Learning capability to your applications.
A library of React Hooks that provides accessible UI primitives for your design system. As a web developer, if you have ever encountered this problem, you know how valuable a tool like this could be.
With all the digitisation taking place during the pandemic, this has undoubtedly resulted in the increase in APIs being built and used in dev teams. Here is a report that details some of the trends during the year and the overall update of the space.
The quick and simple editor for cron schedule expressions by Cronitor