1. Go to this page and download the library: Download elfet/pure 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/ */
elfet / pure example snippets
$port = 1337; // Default port value
$host = '127.0.0.1'; // Default host value
//...
$pure = new Pure\Client($port, $host);
$value = $pure->map('collection')->get('hello'); // will return 'world'.
$all = $pure->map('collection')->all();
// Get all elements that more than a 100.
$result = $pure->queue('collection')->filter('value > 100');
// Limit to 10.
$result = $pure->priority('collection')->filter('value > 100', 10);
// Complex expression.
$result = $pure->of('collection')->filter('value["year"] > 2000 and value["name"] matches "/term/"');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.