Best of PHPMay 2025

  1. 1
    Video
    Avatar of t3dotggTheo - t3․gg·46w

    Is PHP the new JS?

    The post explores the resurgence of PHP as a viable language in modern web development, largely driven by the Laravel framework. The author reflects on their personal journey with PHP, discussing its historical challenges and recent performance improvements. Laravel is highlighted for its comprehensive features that simplify web application development, making PHP enjoyable to use again.

  2. 2
    Article
    Avatar of platformaticPlatformatic·46w

    Seamlessly Blend PHP with Node.js

    Platformatic introduces php-node, a Node.js module that allows developers to embed PHP within Node.js applications. The module utilizes Rust to execute PHP applications in a multi-threaded environment, providing enhanced performance and seamless integration. Key features include seamless integration, multi-threaded processing, improved performance, and a unified development environment. Use cases range from migrating legacy PHP apps to building hybrid applications. The post also provides examples of running PHP and WordPress inside a Node.js server.

  3. 3
    Article
    Avatar of freecodecampfreeCodeCamp·48w

    Top Ways Hackers Exploit Web Applications (and How to Prevent Them)

    Web applications, particularly those with user input, are susceptible to attacks like SQL injection, XSS, CSRF, and weak authentication. Developers can mitigate these risks by employing prepared statements for databases, escaping user inputs in HTML, using CSRF tokens, and enforcing strong authentication measures. Regularly updating libraries and ensuring secure configurations are crucial for protecting against vulnerabilities.

  4. 4
    Article
    Avatar of freekFREEK.DEV·47w

    It's never just that simple

    The post discusses the complexities often overlooked in programming and introduces Oh Dear, a comprehensive monitoring tool for websites that offers uptime tracking, SSL certificate verification, and more. The author shares PHP development insights, tips, and tutorials through newsletters, with a focus on Laravel.

  5. 5
    Article
    Avatar of communityCommunity Picks·50w

    php-mcp/server: Core PHP implementation for the Model Context Protocol (MCP) server

    php-mcp/server is a PHP library designed to simplify the creation of Model Context Protocol (MCP) compliant servers. It facilitates exposing PHP methods as MCP Tools, Resources, or Prompts using PHP 8 Attributes, supporting a specific protocol version and integrating with various MCP clients. The library is PSR-compliant, allowing flexible configurations and integration with different PHP frameworks. Users can set up MCP elements using attribute-based definitions or manual registration, and the package supports multiple transport mechanisms including stdio and HTTP+SSE.

  6. 6
    Article
    Avatar of alllaravelAll Laravel·46w

    ToastMagic v1.0.3 — Livewire Support Enhanced

    ToastMagic v1.0.3 introduces enhanced Livewire v3 support with improved script loading, configurable settings, and seamless integration for toast notifications in Laravel applications. The update fixes JavaScript asset path issues and adds robust fallback mechanisms for better reliability.

  7. 7
    Article
    Avatar of laravelLaravel·46w

    Is There an Official Laravel Certification?

    Laravel does not offer official certification and doesn't endorse third-party certifications. While certifications may help with contract work, the recommended path to mastering Laravel involves reading documentation, watching Laracasts tutorials, and building real applications. Learning through hands-on problem-solving and shipping actual code proves more effective than pursuing certificates.

  8. 8
    Article
    Avatar of freekFREEK.DEV·48w

    Five levels of handling images in Laravel

    Discover methods for resizing, optimizing images, and enhancing UI in Laravel applications using Spatie's packages to streamline and improve efficiency in image handling.

  9. 9
    Article
    Avatar of jetbrainsJetBrains·46w

    PHP Annotated – May 2025

    PHP Annotated May 2025 covers major PHP developments including the upcoming pipe operator in PHP 8.5, new array_first() and array_last() functions, security updates across PHP versions 8.1-8.4, and the introduction of the #[\NoDiscard] attribute. The edition highlights PHP's 30th anniversary celebration, FrankenPHP's official support by The PHP Foundation, and various tools for building desktop applications with PHP. It also covers AI tooling growth in the PHP ecosystem, framework updates including Laravel 12 and Symfony 7.3, and upcoming PHP conferences.

  10. 10
    Article
    Avatar of lnLaravel News·50w

    Argonaut DTO Package for Laravel

    The Argonaut DTO package for Laravel offers a lightweight way to handle Data Transfer Objects with features like nested casting, recursive serialization, and validation. It enhances service layers, APIs, and architectural workflows with type-safe data conversion and consistent data shape enforcement. Main features include deep nested transformation, type-safe data conversion, and clean serialization.

  11. 11
    Article
    Avatar of laraveldevLaravel Dev·47w

    Introducing php-contenv: Ready-to-Go Docker Environment for PHP Projects with different php versions and servers

    Php-contenv is a simple project offering pre-configured Docker environments for PHP projects, supporting various PHP versions and web servers. It simplifies development by bundling Composer, Node.js, and essential tools, while enabling easy integration via Git submodules and consistent environments for team collaboration.

  12. 12
    Article
    Avatar of tomasvotrubaTomas Votruba·49w

    The Patch for Laravel Container

    The post discusses patching the Laravel Container to optimize performance by ensuring services are treated as singletons rather than being instantiated multiple times. The suggested approach avoids extensive configuration by modifying a single line of code in the Laravel container file. The article highlights the benefits of using patches stored in an open-source repository to simplify the process across projects.

  13. 13
    Article
    Avatar of alllaravelAll Laravel·46w

    🩺 Livewire Doctor is here! 🚀

    Introducing Livewire Doctor, a tool designed to help developers inspect and debug Livewire components in real time. It eliminates common issues such as asset errors and environment dependencies, offering clarity directly in the browser. This open-source solution is now available on GitHub.

  14. 14
    Article
    Avatar of lnLaravel News·47w

    Laravel News

    Deployer is a free PHP-based deployment tool that streamlines automating tasks like code pulling and migrations, reducing errors and ensuring reliable deployments. It supports server configuration and zero downtime deployments, with ready-to-use recipes and can be installed via Composer. Integration with GitHub Actions and GitLab CI/CD is also possible.

  15. 15
    Video
    Avatar of laraveldailyLaravel Daily·48w

    NativePHP for Mobile: Demo Laravel Project

    NativePHP enables developers to create desktop and mobile applications using PHP and the Laravel framework. It transforms mobile views of websites into apps without needing new languages, using tools like Tailwind and Bootstrap for responsive design. NativePHP requires a purchased license and follows a straightforward installation process. It includes access to native device APIs, providing functionalities such as camera access and GPS.

  16. 16
    Article
    Avatar of lnLaravel News·49w

    NativePHP Hit $100K — And We're Just Getting Started 🚀

    NativePHP has surpassed $100K in sales, demonstrating strong community support and validating the capability to run Laravel natively on mobile platforms without additional libraries. The team plans to expand development with new features, ensure iOS-Android parity, improve developer experience, expand the community, and partner with agencies for full native Laravel experiences. This marks a shift in Laravel's reach from web to mobile applications.

  17. 17
    Article
    Avatar of lnLaravel News·50w

    Disposable Email Detection in Laravel

    The Disposable Email package for Laravel enables detection and blocking of email addresses from over 106,000 known disposable domains. It offers multiple ways to implement detection, including validation rules, blade directives, and service facades. The domain detection list is configurable and can be synced with remote lists, and users can add custom blocklists. Compatible with Laravel versions 8 through 12.

  18. 18
    Article
    Avatar of lnLaravel News·47w

    Generate a Detailed Application Report with Laravel Decomposer

    Laravel Decomposer is a development package designed to generate detailed application reports by listing Composer dependencies and other vital information such as PHP/Laravel versions and installed PHP modules. With the recent update, the package now supports the latest Laravel versions and features a revamped UI using Tailwind CSS and Alpine.js. This update also includes a custom responsive DataTable component. The package helps in quickly generating system reports, checking pre-configurations, and reducing troubleshooting time.

  19. 19
    Article
    Avatar of lnLaravel News·46w

    Use Amazon Bedrock in Laravel with Prism PHP

    The Prism Bedrock package is a standalone provider for the Prism PHP Package in Laravel, enabling features like text generation, structured output, and embeddings. It offers cache-optimized prompts for reducing latency and costs, and supports multiple schemas such as Converse, Anthropic, and Cohere.

  20. 20
    Article
    Avatar of laraveldevLaravel Dev·46w

    My first Laravel package: Laravel API CRUD Generator!

    The new Laravel API CRUD Generator package allows developers to generate complete API CRUDs using a single command. It streamlines API development by eliminating repetitive boilerplate tasks, providing controllers, services, requests, resources, and routes efficiently. Built from real-world projects, the package is open-source and available on GitHub.

  21. 21
    Article
    Avatar of lnLaravel News·49w

    Populate is a Supercharged Seeder for Laravel

    Laragear Populate is a powerful seeder package for Laravel applications, enhancing the database seeding experience with features like continuable seeding, modular structure, and compatibility with Laravel's native seeder. It supports modern PHP and Laravel versions, enabling organized and maintainable code for complex seeding operations.

  22. 22
    Article
    Avatar of laraveldevLaravel Dev·46w

    Laravel migrator

    A new Laravel migration script efficiently transfers data from a legacy database to a modern schema. Key features include filtering out test data, scalable asynchronous processing with Laravel queues, an event-driven architecture, and comprehensive logging for easy debugging. The script has been tested with a dummy users table and is ready for large-scale migrations.

  23. 23
    Article
    Avatar of lnLaravel News·46w

    ElasticLens: Eloquent-Powered Elasticsearch for Laravel

    ElasticLens is a Laravel package that seamlessly integrates Elasticsearch with Eloquent models, providing advanced search capabilities while maintaining familiar Laravel syntax. The package introduces Index-Model architecture that automatically synchronizes with your database, supports complex queries including full-text search, geolocation filtering, and field boosting. It offers zero-configuration setup, custom field mapping, index migrations, and automatic model synchronization through observers.

  24. 24
    Article
    Avatar of freekFREEK.DEV·47w

    PHP Benchmarks: 8.4 performance is steady compared to 8.3 and 8.2

    Tideways conducted tests comparing PHP versions 8.2, 8.3, and 8.4. The results indicate steady performance across these versions for Laravel, Symfony, and WordPress demo applications.

  25. 25
    Article
    Avatar of phpdevPHP Dev·45w

    🚀 New Video: Building an AI Agent in PHP (Live Coding!)

    A live coding session demonstrates building an AI agent from scratch using PHP, Neuron AI, and Ollama. The unedited video shows real-time development including agent-based AI architecture, integration challenges, and debugging processes. A companion article provides additional context for implementing AI functionality in traditional PHP applications.