
Tag: PHP
19 entries found (2 pages)

Vercel Sandbox: Running PHP, Node and Go Code Safely?
Vercel has announced the general availability of Vercel Sandbox, an execution layer designed specifically for AI agents. But beyond the AI agent hype, there’s an interesting question: can it be useful for running code safely in different languages like PHP, Node, or Go?
What is Vercel Sandbox?
Vercel Sandbox provides on-demand Linux microVMs. Each sandbox is isolated, with its own filesystem, network, and process space. You get sudo access, package managers, and the ability to run the same commands you’d run on a Linux machine.

PHP 8.5.0 Alpha 1: Pipeline to the Future
The first alpha version of PHP 8.5 has just been released, and I must confess it has me more excited than recent versions. It’s not just for the technical improvements (which are many), but because PHP 8.5 introduces features that will change the way we write code.
And when I say “change,” I mean the kind of changes that, once you use them, you can’t go back. Like when the null coalescing operator (??) appeared in PHP 7, or arrow functions in PHP 7.4.

Filament v4 Beta: Comprehensive Analysis of the Revolutionary Features That Will Transform Laravel Application Development
The Filament v4 Beta has officially arrived, and it’s undoubtedly the most ambitious and comprehensive update in this framework’s history. After exploring in detail all the new features, I can confidently say that this version represents a quantum leap in terms of performance, ease of use, and development capabilities.
In this comprehensive analysis, we’ll explore each of the new features in Filament v4, explaining not just what’s new, but also how these improvements can transform your workflow and your application possibilities.

Idempotency in Laravel: How to Avoid Duplicates in Your APIs with Elegance
Idempotency in Laravel: How to Avoid Duplicates in Your APIs with Elegance
In modern API development, one of the most critical challenges is ensuring that operations don’t execute multiple times accidentally. Imagine a user making a payment and, due to connectivity issues, clicking the “Pay” button multiple times. Without proper measures, you might process multiple payments for the same transaction. This is where idempotency comes into play.
What is Idempotency?
Idempotency is a mathematical concept applied to programming that guarantees that an operation produces the same result regardless of how many times it’s executed. In the context of APIs, it means you can make the same request multiple times without causing additional side effects.

Everything about the Filament v4 Beta Release: Nested Resources, Multi-Factor Authentication, and Much More
The Filament team has announced exciting details about the upcoming Filament v4 Beta release, and it’s undoubtedly the most anticipated version to date. Filament v4 is the largest and most feature-packed release Filament has ever had, surpassing even the massive v3 that required over 100 minor versions.
Most Notable Features of Filament v4
Nested Resources
One of the longest-standing community requests is finally becoming reality. Nested resources allow you to operate on a Filament resource within the context of a parent resource.

Laravel Blueprint: The Tool That Revolutionizes Scaffolding with YAML and Saves You Hours of Development
How many times have you started a Laravel project manually creating models, controllers, migrations, factories, form requests, and tests one by one? If you’re like most Laravel developers, you’ve probably wasted countless hours on these repetitive tasks that, while necessary, don’t add direct value to your application’s business logic.
Laravel Blueprint is completely changing this paradigm. This code generation tool, created by Jason McCreary (the same genius behind Laravel Shift), allows you to generate multiple Laravel components from a single, readable, and expressive YAML file. In this deep analysis, we’ll explore how Blueprint can transform your development workflow and why it’s gaining traction in the Laravel community.

Resources March 11, 2022
Options Pattern in Golang
Option pattern is a functional programming pattern that is used to provide optional arguments to a function that can be used to modify its behavior.
How to create a simple event streaming in Laravel?
Event streams provide you with a way to send events to the client without having to reload the page. This is useful for things like updating the user interface in real-time changes are made to the database.

One day I'll discover what the comfort zone is, or not
Moments of change, moments of evolution, a constant in my life, with the 25th anniversary of the creation of the web I’ve entered “review” mode and I’m highly perplexed.
I’ve been doing things for the same time (25 years), enjoying, always with the same concept and particularity: Enjoyment and result, but it hasn’t been relevant for a long time (which is also not very relevant).
I’ve realized that the usual thing is to do things within your comfort zone, and I’ve never had one or knew one could exist, hence I’ve touched and done unusual things or perhaps “untimely”, when a certain technology could be in fashion “Buzz” I hadn’t been using it for a long time because it didn’t give me what something else gave me,…

Laravel Collections: Arrays on steroids
Laravel, in addition to using multiple third-party packages, is also possible to use parts as components. All components are under the “Illuminate” namespace.
If there’s a really interesting and useful class, it’s Collection, which allows us to work with data arrays in a simple and “programmatic” way.
To have this class in our project, we only need the illuminate/support package which we can install with:
composer require illuminate/support:5.2.x-devTo show some examples, we’ll use a small array with this data:

News of the week 2016-03-27
In these last few days, we’ve had many news items, articles, information in the development and technology world, these are the most relevant for me:
Google announces a new Machine Learning service in the cloud
NPM & left-pad: Have We Forgotten How To Program?: The Kik case - left-pad from NPM and the critical fall to “I’ll do this with a third-party module/plugin/package/class”
The Kik case - left-pad from NPM and the fall in (official) or how the most insignificant dependencies can really leave us stranded.

Custom Theme My Login templates
Theme My Login is a plugin that allows us to adapt all elements related to: Registration, Login, … of a WordPress site to our needs.
Inside the plugin folder, we find the templates in the “templates” folder. As is standard practice, we should not modify these templates directly. We can copy them to the root of our theme and modify them there. From that point on, those templates will be used by our site, without a plugin update affecting the changes made.

Creating a new Laravel project
In the folder where we want to start the project:
cd /var/www/my-new-project
composer create-project laravel/laravel ./ --prefer-dist



