PHP code example of print-one / print-one-laravel
1. Go to this page and download the library: Download print-one/print-one-laravel 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/ */
print-one / print-one-laravel example snippets
use Illuminate\Support\Facades\Config;
use PrintOne\PrintOne\Facades\PrintOne;
Config::set('print-one.api_key', 'live_your-api-key');
PrintOne::templates(); // Get available templates
bash
php artisan vendor:publish --tag="print-one-config"