PHP code example of nazmulpcc / paperfly
1. Go to this page and download the library: Download nazmulpcc/paperfly 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/ */
nazmulpcc / paperfly example snippets
$paperfly = new \Nazmul\Paperfly\Paperfly($username, $password, $paperflyKey); // create manually
$paperfly = app()->make(\Nazmul\Paperfly\Paperfly::class); // resolve using the container
\Nazmul\Paperfly\Facades\Paperfly::trackOrder($orderReference, $merchantCode); // using the facade
bash
php artisan vendor:publish --tag="paperfly-config"