This also works with Xdebug, but we're already working on an automated way to compile Xdebug for all PHP versions that we ship and then bundle it with Herd. You can, however, compile a PHP extension manually and register the. Herd's PHP binaries bundle all of the following PHP extensions:Īs Herd's PHP binaries are compiled statically it is not possible to use pecl to install additional PHP extensions out of the box. PHP ExtensionsĪs PHP is compiled statically, this means that also all additional (both internal and third-party) PHP extensions need to be compiled statically as well. This project also powers NativePHP under the hood. Static-cli-builder is a PHP project that allows you to compile PHP and/or FPM statically and supports a wide variety of PHP packages. Herd internally makes use of the static-cli-builder project, maintained by crazywhalecc.ĭuring the development of Herd, I also contributed to the project to add support for some extensions that were not yet supported. The statically compiled PHP binaries result in PHP itself and all of its extensions being compiled into a single binary file. Not only does this mean that Herd does not require any additional dependencies on your computer, but the statically compiled PHP binaries also end up being up to 100% faster than traditional PHP versions installed via Homebrew. Herd solves this problem by shipping PHP (both CLI and FPM) as statically compiled binaries. While Homebrew is a great tool, it also adds a lot of overhead - and often complexity, as a simple brew update command can break your system. How does it work?Īs you may know, if you want to use PHP on your Mac, you usually need to install PHP via Homebrew. This allows you to quickly migrate from Valet to Herd.Īnd as Herd does not have any dependencies, switching back to Valet, in case you need to, is as simple as quitting Herd and starting Valet again. When you install Herd for the very first time, we detect if you are already running and using Laravel Valet and migrate all of your existing Valet settings, isolated sites and SSL certificates to Herd. In addition, Herd gives you a UI to manage your sites, secure them via SSL, or isolate their PHP versions.Īs Herd internally makes use of Valet itself, we wanted to ensure that migrating from Valet would be really easy. You do not need Homebrew to get started with PHP, nginx and dnsmasq. Unlike Valet though, Herd does not have any other dependencies. Just like Valet, Herd also automatically routes all requests to your local *.test domains to the correct sites installed on your local machine. You may already use Laravel Valet to serve your local PHP and Laravel sites. Herd includes everything you need to get started with Laravel development, including PHP (versions 7.4 up to 8.3 Alpha), nginx and dnsmasq. Herd is a blazing fast, native Laravel and PHP development environment for macOS. In this blog post, I want to give you some in-depth details about what Herd is, how it works under the hood, and how you can make use of it. Laravel uses some "magic" ways to do thing like this.Today I am extremely excited to announce Herd, the project that we've been working on over the last couple months in partnership with Laravel.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |