PHP code example of ucp-php-sdk / core
1. Go to this page and download the library: Download ucp-php-sdk/core 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/ */
ucp-php-sdk / core example snippets
$capability = new AdapterBackedOrderCapability(
new CapabilityDescriptor('dev.ucp.shopping.order', UcpProtocolVersion::current()->value, 'https://ucp.dev/specification/order/', 'https://ucp.dev/schemas/shopping/order.json'),
$orderAdapter,
);