PHP code example of mossengine / poignant

1. Go to this page and download the library: Download mossengine/poignant 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/ */

    

mossengine / poignant example snippets



// Currently no constructor but one will be here soon to support limits and settings.


// Require the autoloader, normal composer stuff
Mossengine\Poignant\Poignant;

// Execute an array of JCode directly into the class
$classPoignant = Mossengine\Poignant\Poignant::create()
    ->withName(function($condition) {
        return $condition->


$results = null;

$arrayData = [
    'name' => 'Tom'
];

$classPoignant = Mossengine\Poignant\Poignant::create()
    ->withName(function($condition) {
        return $condition->ts) use (&$results) {
        $results = $mixedResults;
        return 'pass';
    });

echo json_encode($classPoignant->getResults());
// {"valid":"pass","invalid":null}