PHP code example of webparking / laravel-cash

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

    

webparking / laravel-cash example snippets


use Webparking\LaravelCash\Entities\Item;

/** @var Item $item */
$item = app()->make(Item::class);

// Get collection of items   
$items = $item->index(); 

// Fetch item 'foo'
$item = $item->get('foo'); 

use Webparking\LaravelCash\Entities\Item;

app()->make(Item::class)->index('X'); // Creates request for endpoint "2260X"

app()->make(Item::class)->index('W|7'); // Creates request for endpoint "2260W|7"