1. Go to this page and download the library: Download chiiya/laravel-passes 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/ */
chiiya / laravel-passes example snippets
public function __construct(
private OfferClassRepository $offers,
private PassFactory $apple,
)
public function handle(): void
{
$this->apple->create(...);
$this->offers->get(...);
}
use Chiiya\LaravelPasses\PassBuilder;
public function __construct(
private PassBuilder $builder,
)
public function handle(): void
{
$this->builder->apple()->create(...);
$this->builder->google()->offerClasses()->create(...);
$this->builder->google()->createJWT()->addOfferObject(...)->sign();
}