PHP code example of kejubayer / pathao-api-integration
1. Go to this page and download the library: Download kejubayer/pathao-api-integration 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/ */
kejubayer / pathao-api-integration example snippets
use Kejubayer\PathaoIntegration\Models\PathaoParcelStatus;
$statuses = PathaoParcelStatus::latest()->get();
use Kejubayer\PathaoIntegration\Contracts\PathaoInterface;
class OrderController
{
public function store(PathaoInterface $pathao)
{
return $pathao->cities();
}
}