PHP code example of detain / phlix-plugin-example

1. Go to this page and download the library: Download detain/phlix-plugin-example library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

detain / phlix-plugin-example example snippets


['title' => 'Hello, World']

$provider = $container->get(\Phlix\PluginExample\HelloMetadataProvider::class);
$provider->lookup('/test/hello.mkv'); // ['title' => 'Hello, World']
$provider->lookup('/anything/else');  // []
bash
composer install
vendor/bin/phpunit
php scripts/security-audit-check.php   # same security gate CI runs