PHP code example of starbug / bundle

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

    

starbug / bundle example snippets


use Starbug\Bundle\Bundle;

$bundle = new Bundle();

$bundle->set("user", "first_name", "Abdul");

$bundle->get("user", "first_name"); // returns Abdul
$bundle->has("user", "first_name"); // return true


$bundle->set("user", "address", "city", "Vancouver");

$bundle->get("user", "address", "city"); // returns Vancouver
$bundle->has("user", "address", "city"); // returns true