Re: [PECL-DEV] filesystem notification extension

[email protected] (Frederik Bosch) Thu, 13 Jun 2024 14:28:15 +0200
Newsgroups php.pecl.dev
Message-ID <[email protected]>
On 13-06-2024 13:55, Derick Rethans wrote:
> On 12 June 2024 16:46:31 BST, Frederik Bosch<[email protected]>  wrote:
>> Dear PECL Mailing List,
>>
>> Conforming to the policies mentioned on the PECL Publishing page, I am sending this message to request access to publish a filesystem notification extension on PECL. First a little introduction. I have been a PHP-dev for more than 20 years and a few years ago I have contributed to PHP with the SameSite RFC. I am also maintaining the MoneyPHP package.
>>
>> Regarding the extension I would like to publish on PECL, I have been searching for a cross-platform filesystem notification library but I could not find any. The inotify extension has not been updated since 2020. Only after I decided to create this package, the first userland package (azjezz/assess<https://packagist.org/packages/azjezz/assess>) arrived on Packagist. I think an extension with filesystem notifications would be really helpful. Therefore I created the php-ext-fs-notify package<https://github.com/genkgo/php-ext-fs-notify>. The extension name is fs-notify.
>>
>> To develop the extension I decided to use the PHPER (PHP Enjoy Rust) framework<https://github.com/phper-framework/phper>. I basically used it to create a PHP interface around notify-rs<https://github.com/notify-rs/notify>. This week the package got to a first version that is ready to use for the public. At the moment it supports Linux and macOS filesystem notifications for PHP 8.1, 8.2 and 8.3.
>>
>> I would love to have access to PECL to publish this extension.
>>
>> Regards,
>> Frederik
> Hi Frederik,
>
> The idea for an extension for this sounds reasonable.
>
> I've just had a look, but I can't get this to compile with the standard phpize && ./configure && make sequence, which is going to be required if this is going to be installed through the PECL installer.
>
> cheers
> Derick
>

Hi Derick,

Sorry, I was under the impression that I first had to request access. I 
have added the config.m4 file so you should be able to compile the 
extension. It does require cargo 
<https://doc.rust-lang.org/stable/cargo/getting-started/installation.html> 
though.

Regards,
Frederik