Best of PHPMarch 2025

  1. 1
    Article
    Avatar of laraveldevLaravel Dev·1y

    Laravel Developer Roadmap

    Learn the essential skills and best practices to become a proficient Laravel developer, covering fundamentals such as PHP OOP concepts, routing, middleware, authentication, Blade templating, database management, and testing. Gain insights into advanced topics like performance optimization, REST API development, real-time features, CI/CD, and Laravel ecosystem tools.

  2. 2
    Article
    Avatar of freekFREEK.DEV·1y

    Naming things is suddenly easier

    Oh Dear is an all-in-one monitoring tool that provides uptime monitoring, SSL certificate checks, broken link detection, and more, with a user-friendly API and excellent documentation. The author shares programming tips, tutorials, and opinions through various platforms and a monthly newsletter, focusing on Laravel and modern PHP development.

  3. 3
    Article
    Avatar of lnLaravel News·1y

    Create Self-Contained PHP Executables with PHPacker

    PHPacker allows packaging any PHP script or PHAR into a standalone, cross-platform executable, simplifying distribution by bundling PHP with the application. You can install PHPacker via Composer and build for multiple platforms like Mac, Windows, and Linux. Configuration is possible via CLI options or a configuration file. Various PHP versions and custom PHP binaries can be used, making PHPacker versatile for many project requirements.

  4. 4
    Article
    Avatar of lnLaravel News·1y

    Introducing Hypervel: A Coroutine Framework for Laravel Artisans

    Hypervel is a high-performance PHP framework inspired by Laravel, designed for high-concurrency and I/O-intensive applications. Leveraging Swoole's asynchronous capabilities, it offers native coroutine support, significantly enhancing performance over Laravel's Octane by handling non-blocking I/O more efficiently. Hypervel maintains a Laravel-like development experience, making it accessible to Laravel developers with minimal learning curve. Ideal for microservices, API gateways, and high-concurrency applications, Hypervel promises up to hundreds of times higher QPS in I/O-intensive scenarios.

  5. 5
    Article
    Avatar of lnLaravel News·1y

    Enhancing Laravel Authorization with Backed Enums

    Enhance your Laravel application's security model with backed enum support for permissions. This feature provides a type-safe approach to authorization checks while improving code readability and maintainability. The implementation simplifies the process of permission checks, making it more intuitive and manageable across complex systems.

  6. 6
    Video
    Avatar of laraveldailyLaravel Daily·1y

    Laravel APIs: 3 Bad Practices

    Learn three common bad practices to avoid when building APIs with Laravel: returning success status codes when errors occur, creating custom non-standard routes instead of using Laravel's resource routes, and introducing breaking changes without versioning or maintaining backward compatibility. Avoid these pitfalls for more robust and maintainable APIs.

  7. 7
    Article
    Avatar of freekFREEK.DEV·1y

    Using PHP as a (Terrible) Video Player

    Using PHP to create a video player is not recommended due to its limitations, but it can still be a fun project. The author shares programming tips, tutorials, opinions, and insights with a focus on PHP and Laravel through a monthly newsletter.

  8. 8
    Article
    Avatar of freekFREEK.DEV·1y

    Discovering PHP's yield Keyword After 10 Years

    Explains PHP's yield keyword and how it can be used instead of return to simplify building iterators. Highlights practical tips and its applications in modern PHP development, particularly with Laravel.

  9. 9
    Article
    Avatar of lnLaravel News·1y

    Generate Documentation in Laravel with AI

    Docudoodle is a Laravel package that generates documentation for your codebase using various AI models, including OpenAI, Claude, Gemini, and Ollama. It analyzes your PHP files to create documentation, helping you understand and maintain both new and legacy projects. The package offers flexible configurations and can be used offline with local models for privacy.

  10. 10
    Article
    Avatar of acfACF·1y

    How to Build WordPress Blocks

    Learn how to create custom WordPress blocks using React or Advanced Custom Fields (ACF). This guide covers methods including setting up a development environment, creating and registering custom blocks, and best practices for scalable block development with both JavaScript and PHP. Enhance flexibility and development efficiency with practical examples and step-by-step tutorials.

  11. 11
    Article
    Avatar of communityCommunity Picks·1y

    Top Common Interview PHP Questions

    Discover and practice common questions that are frequently asked in PHP related interviews to better prepare yourself and increase your chances of landing the job.

  12. 12
    Video
    Avatar of primeagenThePrimeTime·1y

    Launching a site in one day... WITH PHP?

    This post covers the process of creating a voting web application using Laravel and PHP that allows users to submit questions and vote on them in real-time. The post demonstrates setting up a new Laravel project from scratch, implementing authentication using Twitch via Laravel Socialite, handling token storage and user data, and displaying user information on the frontend. Additional scopes for accessing Twitch subscriptions and chat are also addressed.

  13. 13
    Article
    Avatar of hnHacker News·1y

    soloterm/screen: A terminal renderer written in pure PHP.

    Screen is a terminal renderer written in pure PHP designed to build rich text-based user interfaces without relying on external dependencies or native code. It interprets and processes ANSI escape sequences to correctly render text content with formatting in a virtual terminal buffer. Initially created for Solo for Laravel to manage processes with complex ANSI operations, Screen can now be integrated into any PHP application. Key features include comprehensive ANSI support, Unicode handling, buffer management, and a robust testing suite for accurate rendering validation.

  14. 14
    Article
    Avatar of lnLaravel News·1y

    Temporary Context Scope in Laravel 12.1

    Laravel 12.1 introduces several new features including a context scope method, an Arr::partition() method, a getRawSql() method to handle query exceptions, and enhancements to the PendingCommand class. These updates aim to improve usability and developer efficiency.

  15. 15
    Article
    Avatar of lnLaravel News·1y

    Level up your Laravel development with Typesense!

    Typesense offers a blazing-fast, typo-tolerant search solution for Laravel with instant results and easy setup. You can choose between a self-hosted version or a cloud offering. Key features include typo tolerance, fast performance, tunable ranking, dynamic sorting, faceting, geo search, vector search, and integration with Laravel Scout for simple integration into your Laravel application.

  16. 16
    Article
    Avatar of lnLaravel News·1y

    Support for Query Builder Pipelines in Laravel 12.4

    Laravel 12.4 introduces a new query builder pipe() method, allows conditional skipping of migrations, and adds the Arr::sole() method. Other updates include the listenersPushed() method for queue listeners, the Model::except() method, and the assertDoesntThrow() method, along with new JSON assertion methods whereNull() and whereNotNull().

  17. 17
    Article
    Avatar of lnLaravel News·1y

    Laravel News

    Grapheme is a PHP library created by Aaron Francis to accurately determine the display width of Unicode characters in terminal applications. This package supports a wide range of Unicode characters including CJK characters, emojis, zero-width characters, and more. It is optimized for high performance and minimal dependencies, requiring PHP 8.2+ and optionally the intl extension. For more details and installation instructions, visit the Grapheme GitHub repository.

  18. 18
    Article
    Avatar of lnLaravel News·1y

    Resource Response Customization in Laravel APIs

    Laravel's withResponse method allows developers to customize API responses, including headers, status codes, and other attributes. This feature is useful for adding metadata and ensuring responses meet specific requirements, making it ideal for professional API development.

  19. 19
    Article
    Avatar of communityCommunity Picks·1y

    Laravel 12.2 Introduces Custom Starter Kits

    Laravel 12.2.0 has been released, introducing custom starter kits and several new features. The new version includes support for community starter kits, which can be easily installed via the 'laravel new' command. Other updates include a ddBody() method for TestResponse, CanBeOneOfMany support for HasOneThrough relationships, and new increment/decrement methods for Context.

  20. 20
    Article
    Avatar of tomasvotrubaTomas Votruba·1y

    Custom PHPStan Rules to Improve Every Symfony project

    To ensure long-term code quality in Symfony projects, implementing custom PHPStan rules can be highly effective. These rules help maintain a clean codebase by promoting practices like clear constructor injection, avoiding service locators, and preventing route prefixing. By following these rules, projects can remain robust and maintainable even after the original developers have left.

  21. 21
    Article
    Avatar of lnLaravel News·1y

    Laravel News

    Squeaky is a Laravel validation rule designed to catch profanity in applications. It is powered by the Profanify library and supports multiple locales. The package can be installed via Composer, and its usage involves implementing the Clean rule within validation logic. Further details and source code are available on GitHub.