Best of PHP2024

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

    PHP in 2024

    PHP in 2024 offers continuous evolution with new PHP features being worked on, the emergence of FrankenPHP for performance optimization, the success of Laravel as an open-source framework, the growing interest in PHP from outside the PHP community, and the continuous growth of the PHP ecosystem with Packagist reaching over one hundred billion downloads.

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

    What's new in PHP 8.4

    PHP 8.4 will introduce property hooks, allow 'new' keyword without parentheses, JIT improvements, deprecated implicit nullable types, and new DOM HTML5 support.

  3. 3
    Article
    Avatar of phpdevPHP Dev·2y

    Laravel Tip - PHP

    Leverage Eloquent's relationship method in Laravel to simplify your code. This approach is cleaner, more expressive, and compatible with any 'belongs to' relationship.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    10 Large Open-Source Projects Built with Laravel

    Laravel is popular for building various web applications, and here are 10 notable open-source projects created using it. These projects range from personal CRMs and music streaming servers to invoicing solutions and game server management panels. Each project utilizes different versions and aspects of the Laravel ecosystem, such as Laravel UI, Pint, Socialite, and more.

  5. 5
    Article
    Avatar of communityCommunity Picks·2y

    Don't query your PostgreSQL db anymore, prefer PostgREST

    The post discusses the benefits of using PostgREST to replace traditional SQL queries in PostgreSQL databases. It outlines the process of setting up PostgREST, a standalone web server that converts PostgreSQL databases into RESTful APIs, simplifying database interactions. The author shares their experience migrating from MySQL to PostgreSQL and how PostgREST helped streamline their PHP code by eliminating direct SQL queries. The post includes a tutorial on setting up and using PostgREST with Docker, illustrating various query examples and security considerations.

  6. 6
    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.

  7. 7
    Article
    Avatar of communityCommunity Picks·2y

    My work setup for PHP development

    The post discusses the author's work setup for PHP development, involving a mix of hardware and software. The main work machine runs Windows 11 with Ubuntu under WSL, a MacBook Pro for corporate tasks, and a ChromeOS laptop for flexible workspaces. Key productivity tools include Barrier for multi-device control, WezTerm for terminal tasks, zsh as the shell, Neovim as the code editor, and tmux with tmuxinator for session management. The author also highlights Ddev for managing containerized environments efficiently.

  8. 8
    Article
    Avatar of lnLaravel News·2y

    A Look at What's Coming to PHP 8.4

    PHP 8.4 is scheduled to be released on November 21, 2024. It will introduce features such as PHP Property Hooks and a syntax update for member access during instantiation.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    PHP Cheat Sheet

    A quick reference guide for PHP, featuring functions references, regular expression syntax guide, and date formatting functions. Now includes popup links to the relevant PHP manual pages for easy access to detailed information.

  10. 10
    Article
    Avatar of communityCommunity Picks·2y

    vitodeploy/vito: The Ultimate Server Management Tool

    Vito is a self-hosted web application designed to streamline server management and deployment of PHP applications into production. It offers features like server provisioning, database management, firewall management, custom and LetsEncrypt SSL support, SSH key deployment, cron job management, and leverages Supervisor for queue handling. Ideal for deploying Laravel and other PHP applications.

  11. 11
    Article
    Avatar of medium_jsMedium·2y

    The 7 Levels of Laravel Optimization: From Rookie to Optimization Overlord — with Benchmark — 98% reduction

    This post guides you through seven levels of optimizing Laravel applications, from basic eager loading to advanced techniques like lazy collections and chunking. It details each step with code examples and benchmarks, showing significant resource savings at each level.

  12. 12
    Article
    Avatar of devtoDEV·2y

    Processing One Billion Rows in PHP!

    This post discusses the author's experience in optimizing a PHP script to process one billion rows of data. The initial naive implementation took 25 minutes to run, but through various optimizations, the runtime was reduced to 27.7 seconds. The optimizations included using fgets() instead of fgetcsv(), using references where possible, adding type casts, enabling JIT, and implementing multithreading.

  13. 13
    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.

  14. 14
    Article
    Avatar of communityCommunity Picks·2y

    Laravel Admin Panel

    Orchid simplifies the development of admin panels in Laravel, allowing developers to focus on application logic. It comes with comprehensive documentation and examples for quick implementation. Features include a variety of UI components, easy management of user permissions, flexible attachment options for files, and adherence to W3C standards for customization. All code is open-source and community-developed.

  15. 15
    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.

  16. 16
    Article
    Avatar of lnLaravel News·1y

    Laravel VS Code Extension Public Beta

    The Laravel core team has announced the public beta release of the official Laravel VS Code extension during Laracon US 2024. The extension aims to improve the development workflow by offering enhanced autocomplete, click-to-source navigation, and various helpful tools. Key features include auto-completion for routes, models, views, and more, direct links to definitions, and warnings for missing configurations or templates. Additional upcoming features include integration with VS Code test runner, Livewire, Volt, and Pint support.

  17. 17
    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.

  18. 18
    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.

  19. 19
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    JavaScript Frameworks vs Laravel – Which Should You Choose for Web Development?

    Comparing JavaScript frameworks to Laravel for web development. Discusses the lack of a Laravel-like framework in the JavaScript ecosystem. Highlights the benefits of JavaScript frameworks and libraries, as well as the advantages of using Laravel. Provides a comparison between JavaScript frameworks and Laravel in terms of features, flexibility, salary, availability of tools, security, documentation, testing & debugging, learning curve, scalability, deployment & hosting, customization, performance, and future prospects.

  20. 20
    Article
    Avatar of phpdevPHP Dev·1y

    PHP is not Dead

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

    New without parentheses in PHP 8.4

    PHP 8.4 introduces a feature allowing developers to create new objects without parentheses, simplifying code and enabling method chaining directly on newly created objects. This update extends to methods, properties, static methods, and even supports dynamic and anonymous classes. However, constructor brackets remain mandatory for class instantiation to avoid parsing ambiguities. Despite minor limitations, this syntactic sugar promises to enhance coding efficiency.

  22. 22
    Article
    Avatar of communityCommunity Picks·2y

    Deployer - The deployment tool for PHP

    Deployer is a PHP deployment tool that supports popular frameworks and offers features like server provisioning, zero downtime deployments, and ready-to-use recipes for various applications. It can configure firewalls, install PHP and databases, and set up HTTPS, providing robust rollback capabilities in case something goes wrong.

  23. 23
    Article
    Avatar of communityCommunity Picks·2y

    FrankenPHP: the modern PHP app server

    FrankenPHP is a modern PHP app server written in Go and C, natively supported by Symfony, API Platform, and Laravel. It offers faster performance compared to FPM, and can run apps without requiring an external service.

  24. 24
    Article
    Avatar of phpdevPHP Dev·2y

    Why people complain about PHP

    The post seeks reader opinions on why PHP is often criticized and why its features are undermined. It invites both positive and negative views on PHP, asking for context to understand different perspectives better.

  25. 25
    Article
    Avatar of communityCommunity Picks·1y

    Things to do after a fresh laravel install

    When setting up a fresh Laravel installation, consider using the Laravel installer for a streamlined process, including selecting a starter kit such as Inertia/React or Livewire Volt with Class. Recommended packages for enhancing your Laravel setup include Laravel-error-solutions, laravel-schedule-monitor, laravel-env-keys-checker, and tighten/duster. Configuration tips include addressing the n+1 query problem and ensuring JSON responses for API routes in Laravel 11 and above. Example configurations for tlint, pint, and package.json are shared for better project setup.