Upgrade to Pro — share decks privately, control downloads, hide ads and more …

From Pickles To Pie: Sweeten Your PHP Extension...

alcaeus
December 09, 2024

From Pickles To Pie: Sweeten Your PHP Extension Installs

What started out as a sweet PEAR is now a sour PECL, and after many years of dealing with brined cucumbers it’s time to dish out some sweet new tools. Join us for a trip down memory lane as we take a look at the acquired taste of PHP extensions and their challenges from writing and publishing them to finally handling the installation procedure you are all too familiar with. The talk will give you an insight into an effort by the PHP foundation to bake a new PHP Installer for Extensions and how it will solve some of the challenges of dealing with PHP extensions.

Talk given at SymfonyCon Vienna 2024, on December 6th, 2024

alcaeus

December 09, 2024
Tweet

More Decks by alcaeus

Other Decks in Programming

Transcript

  1. Stig Bakken The intention behind PEAR is to provide a

    means for library code authors to organise their code in a defined way shared by other developers, and to give the PHP community a single source for such code.
  2. PHP Documentation PECL is a repository of PHP extensions that

    are made available via the PEAR packaging system.
  3. make package.xml # Update release notes vim package.xml pecl package

    package.xml pecl install testing-1.2.3.tgz gh release create v1.2.3 --generate-notes testing-1.2.3.tgz
  4. pecl/xdebug requires PHP (version >= 8.0.0, version <= 8.3.99), installed

    version is 7.2.34 No valid packages found install failed
  5. { "name": "xdebug/xdebug", "type": "php-ext-zend", "license": "Xdebug-1.03", "description": "Xdebug is

    a debugging and productivity extension for PHP", "require": { "php": ">=8.0,<8.5" }, "php-ext": { "extension-name": "ext-xdebug", "priority": 90, "configure-options": [] } }
  6. !