Best of PHPAugust 2024

  1. 1
    Article
    Avatar of tomasvotrubaTomas Votruba·2y

    PHP is the Best Choice for Long‑Term Business

    PHP is highlighted as the best choice for long-term business stability due to its mature ecosystem, time-tested frameworks like Symfony and Laravel, and advanced tools like PHPStan and Rector. The post contrasts PHP's longevity and stability with the rapidly changing JavaScript framework landscape, emphasizing the cost efficiency and reliability that PHP provides for businesses over time.

  2. 2
    Article
    Avatar of stitcherstitcher.io·2y

    I don't write code the way I used to

    A seasoned programmer shares reflections on how their coding approach has evolved over the past decade. Key changes include a move away from abstractions, embracing a functional programming mindset, struggling but persisting with testing, opting for readability over shorthand efficiency, and the importance of static analysis tools. Despite the quirks, they continue to find value in using PHP.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    thedevdojo/genesis: An Application Starter Kit

    Genesis is a Laravel Starter Kit using the TALL Stack with features like Authentication, User Dashboard, Edit Profile, and various UI Components. Installation involves running a few commands, setting up a database, and compiling assets. Genesis provides multiple routes and Blade Components for both app and marketing pages. It includes middleware for authentication and verification, making it easy to customize and create additional pages. Basic tests are included to check authentication functionality.

  4. 4
    Article
    Avatar of stitcherstitcher.io·2y

    PHP 8.4 at least

    Tempest will require PHP 8.4 due to significant upcoming changes, like property hooks. The author believes in leveraging the initial flexibility of open-source projects to embrace new features early, pushing the community to stay current with PHP versions, and deliberately slowing initial adoption to manage quality and feedback effectively.

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

    New Array Functions in PHP 8.4

    Learn about the new array functions 'array_find', 'array_find_key', 'array_all', and 'array_any' introduced in PHP 8.4. The post also explains their Laravel equivalents for achieving similar tasks.

  6. 6
    Article
    Avatar of communityCommunity Picks·2y

    Laravel Admin Panel

    Orchid simplifies the creation of admin panels in Laravel, allowing developers to focus on application logic rather than building from scratch. It includes comprehensive technical documentation, a variety of customizable UI components, and an intuitive interface for managing user permissions and attaching files to records. The tool adheres to browser and W3C standards, and is entirely open-source.

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

    PHP 8.4 Property Hooks

    Oh Dear is a comprehensive website monitoring tool that checks uptime, SSL certificates, broken links, and scheduled tasks. It features a developer-friendly API, excellent documentation, and the ability to create public status pages quickly. The post author also shares programming tips, tutorials, and opinions through a monthly newsletter, with a focus on Laravel and modern PHP development.

  8. 8
    Article
    Avatar of lnLaravel News·2y

    Introducing Laravel Cloud

    Taylor unveiled Laravel Cloud at Laracon 2024 as a new app platform for deploying Laravel apps instantly. Highlights include auto-scaling, DDoS protection, push-to-deploy, and on-demand database scaling with Serverless Postgres. It aims to eliminate DevOps complexities, allowing developers to focus on shipping their ideas quickly. Interested users can join the waiting list for early access.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    PHP Attributes: how to use PHP Attributes and create custom attribute classes – Fast Tips

    PHP attributes, introduced in PHP 8.0, allow developers to add metadata to code declarations such as classes, methods, or properties. These attributes can be programmatically retrieved, helping to create cleaner and more organized code without affecting runtime performance. The post covers built-in attributes like Deprecated, Override, and SuppressWarnings, and provides examples of how to create and use custom attribute classes. Popular PHP frameworks like Symfony and Laravel are starting to adopt attributes to replace annotations, enhancing the efficiency and maintainability of code.

  10. 10
    Article
    Avatar of lnLaravel News·2y

    How to Build Your First PHP Package

    Learn how to create your first PHP package from scratch using Composer. This guide walks through initializing a Git repository, configuring the composer.json file, setting up autoloading, and adding basic source code. It also covers how to implement and organize tests using Pest PHP and Mockery. Finally, it provides tips for publishing your package on Packagist and automating version updates.

  11. 11
    Article
    Avatar of communityCommunity Picks·2y

    Winter CMS

    Winter CMS is a free, open-source content management system built on the Laravel PHP framework, known for its simplicity, performance, and user-friendly design. It enables rapid development of feature-rich websites and applications, suitable for all project sizes. Winter CMS offers full source code access, a powerful plugin and theme architecture, and a marketplace for extended functionality. It's relied upon by developers and agencies globally for its stability, security, and ease of use.

  12. 12
    Article
    Avatar of phpdevPHP Dev·2y

    Are you thinking of moving from PHP to Go? Read this first!

    Considering transitioning from PHP to Go? Explore the potential benefits and differences between these two programming languages, and find out if Go is a suitable choice for your next project.

  13. 13
    Article
    Avatar of stitcherstitcher.io·2y

    Extend or implement

    The author discusses their frustration with the misuse of inheritance in object-oriented programming, arguing that inheritance should reflect real-world relationships while interfaces should describe technical behavior. The misuse is compared with Alan Kay's original vision for OOP, which emphasized simplicity. The author believes current practices complicate software design unnecessarily and offers a mental model to make sense of the issue.

  14. 14
    Article
    Avatar of communityCommunity Picks·2y

    How to Search in a PHP Associative Array – Fast tips

    Associative arrays in PHP store key-value pairs and are commonly used to represent structured data. This guide explores various methods for searching values within these arrays, including using `array_key_exists`, `array_search`, `in_array`, `foreach` loops, and `array_filter`. Additionally, performance benchmarks between `array_map` and `foreach` reveal that the latter is more efficient for larger datasets due to the overhead of callback functions in `array_map`.

  15. 15
    Article
    Avatar of jetbrainsJetBrains·2y

    PhpStorm 2024.2 Is Now Available

    PhpStorm 2024.2 introduces several impactful updates including direct log file support for Laravel, Symfony, and WordPress with proper highlighting, a floating toolbar for instant code refactoring and AI-powered features, enhanced command completion in the terminal, and PER coding style support. The IDE now supports Chinese, Japanese, and Korean UI language packs, has improved UI and UX including full line code completion, updated Linux window controls, and default Prettier integration for new projects. Significant enhancements to the JetBrains AI Assistant make cloud code completion faster and more accurate.

  16. 16
    Article
    Avatar of notedNoted·2y

    Wavelog - Self-Hosted Amateur Radio Logging

    Wavelog is a self-hosted online amateur radio logging software that enables users to record and track their contacts from anywhere. Developed by radio amateurs, the PHP application offers a simple web interface, advanced mapping features, in-depth analytics, and integration with popular third-party services. It supports Windows, Mac, and Linux, and can be installed using Docker Compose. Wavelog promotes data privacy and customization, making it an ideal solution for managing your amateur radio logs.

  17. 17
    Article
    Avatar of lnLaravel News·2y

    Automated API documentation generation for Laravel with static code analysis using Scramble

    Maintaining API documentation in Laravel can be time-consuming and error-prone when done manually with PHPDoc annotations or OpenAPI spec files. Instead, Scramble offers a streamlined solution using static code analysis, ensuring documentation remains accurate and up-to-date with code changes. Scramble automatically documents request parameters, successful and error responses, and keeps everything in sync, alleviating the effort required by developers.

  18. 18
    Article
    Avatar of lnLaravel News·2y

    Building Desktop Applications using Native PHP with Simon Hamp

    Simon Hamp, the creator of Native PHP, discusses in an interview how developers can use Native PHP to build and distribute desktop applications without the end-user needing to have PHP installed. The interview is available on the Laravel News YouTube channel and various podcast platforms.

  19. 19
    Article
    Avatar of lnLaravel News·2y

    Filament Gaze: Show When Multiple Users View the Same Resource

    Filament Gaze is a plugin for Filament PHP that displays when multiple users view the same resource. It features customizable poll times, resource locking, and logic for control overrides. The plugin also includes a method for defining custom logic for taking control of locked pages.