PHP code example of tharindu127 / pubba
1. Go to this page and download the library: Download tharindu127/pubba 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/ */
tharindu127 / pubba example snippets
$pubba = Pubba\Pubba::load(file_get_contents('pubba.bundle.json'));
$pubba->match('flutr')->entity?->id; // "tech:Flutter"
(new Pubba\Guide($pubba, route: fn ($e) => "/item/{$e->id}"))->ask('anything like kiri walet?')->text;
dart
final pubba = loadBundle(await rootBundle.loadString('assets/pubba.bundle.json'));
pubba.match('flutr').entity?.id; // "tech:Flutter"
createGuide(pubba, route: (e) => '/item/${e.id}').ask('anything like kiri walet?').text;