Best of PHPJanuary 2024

  1. 1
    Article
    Avatar of lobstersLobsters·2y

    If PHP Were British

    This post explores the changes that British PHP developers would like to make to PHP, including replacing symbols with more refined alternatives, using a more formal language in code examples, eliminating unnecessary abbreviations, adjusting conditional code structures, correcting spelling errors, introducing more polite error handling, and adding a class hierarchy system.

  2. 2
    Article
    Avatar of communityCommunity Picks·2y

    Dreaming of a strong and statically-typed PHP

    Exploration of the possibility of a strong and statically-typed PHP with new features in the type system.

  3. 3
    Article
    Avatar of medium_jsMedium·2y

    Adapter Design Pattern

    The Adapter Design Pattern is a software design pattern that allows the interface of an existing class to be used as another interface. It solves the problem of making incompatible classes compatible by using an intermediate class that implements a common interface. Some other examples of using the Adapter Design Pattern include getting news feeds from different sources, sending notifications through different channels, using different cache drivers, using different file storage adapters, logger, and database clients.

  4. 4
    Article
    Avatar of medium_jsMedium·2y

    Stop using old-fashioned closures in modern PHP. There are 4* ways to replace them.

    Learn about the popular use cases of closures in PHP, understand when it's not ideal to use closures, and discover four ways to replace them in modern PHP.

  5. 5
    Article
    Avatar of medium_jsMedium·2y

    Most Useful Package You Must Know as a Laravel Developer

    Discover a collection of useful Laravel packages that can enhance your productivity as a developer.

  6. 6
    Article
    Avatar of medium_jsMedium·2y

    SOLID Principles of Object-Oriented Programming in Laravel

    Learn about the SOLID principles in Laravel development, including Single Responsibility Principle (SRP), Open/Closed Principle (OCP), Liskov Substitution Principle (LSP), Interface Segregation Principle (ISP), and Dependency Inversion Principle (DIP). Explore Laravel-specific design patterns like Repository Pattern and Service Pattern. Discover effective use of Laravel Eloquent for clean code and learn about advanced Eloquent techniques. Understand the importance of testing and refactoring in Laravel development. Gain insights from case studies and real-world examples of SOLID principles in Laravel projects.

  7. 7
    Article
    Avatar of lnLaravel News·2y

    Introducing Filament v3.2

    Filament v3.2 introduces new features including CSV/Excel export action, clusters for grouping resources, deferred table filters, unsaved changes alerts, revealable password fields, and more.

  8. 8
    Article
    Avatar of communityCommunity Picks·2y

    PHP Benchmarks: Real-World Speed Tests for Versions 8.1, 8.2, and 8.3

    The post provides performance benchmarks for different PHP versions on popular CMSs and frameworks. WordPress performs better with newer PHP versions, and upgrading to PHP 8.3 is recommended. Laravel, Drupal, Joomla, and other platforms also show performance improvements with the latest PHP version.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    Laravel Modules

    Laravel Modules is a Laravel package that allows for managing large Laravel apps using modules. It provides features like views, controllers, and models. Upgrading to v6 requires running a specific command. Generating a module is achieved with a single command, resulting in a predefined structure for the module.

  10. 10
    Article
    Avatar of medium_jsMedium·2y

    Exploring Laravel Single Action Controller: Simplifying Code for Better Maintenance

    Laravel Single Action Controllers simplify code and improve maintenance by focusing on a specific task, improving code readability, simplifying routing, and enhancing code reusability. They adhere to the principles of clean code and separation of concerns, leading to more maintainable, readable, and scalable applications.