PHP code example of wildan99 / octo-bundle

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

    

wildan99 / octo-bundle example snippets


Daniil\OctoBundle\OctoBundle::class => ['all' => true],

class MyClass 
{
    public function __construct(private \Daniil\OctoBundle\Service\Client $client) 
    {
    }
    
    public function prepare(): void
    {
        $this->client->prepare(new PrepareRequest(shopTransactionId: 'test', sum: 1000, currency: Currency::UZS, description: ''))
    }
}