1. Go to this page and download the library: Download flyokai/misc 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/ */
flyokai / misc example snippets
use Flyokai\Misc\CryptKey;
$key = new CryptKey('/path/to/private.pem', passPhrase: null, keyPermissionsCheck: true);
$key->getKeyContents(); // PEM contents (string)
$key->getKeyPath();
$key->getPassPhrase();
use Flyokai\Misc\PsrServerAdapter;
$adapter = new PsrServerAdapter();
$psrRequest = $adapter->toPsrServerRequest($ampRequest);
$ampResponse = $adapter->fromPsrServerResponse($psrResponse, $ampRequest);
use Flyokai\Misc\SharedSequence;
$seq = new SharedSequence();
// Fiber A
$seq->await(5); // suspends until position >= 5
// Fiber B
$seq->resume(5); // advances to position 6, resumes any waiters whose target is <= 5
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.