Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
FNSO
I-FAIR IR
Circe Php Client
Commits
155ec9ad
Commit
155ec9ad
authored
Sep 04, 2020
by
mickael
Browse files
Add basic README
parent
cd33d1a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
0 → 100644
View file @
155ec9ad
# Circe PHP client lib
## Dependencies
PHP 7 with curl and json extensions.
## Usage
<?php
declare(strict_types=1);
include "vendor/autoload.php";
use Certic\Circe\Client as CirceClient;
$client = new CirceClient(
'http://acme.tld',
'dont_tell_anyone',
'app_id');
$job = $client->newJob();
$job->addTransformation("html2pdf");
$job->addFile("/home/someone/example.html");
$client->send($job, true); // wait=true for synchronous execution
foreach ($job->getResult()->getFiles() as $file){
if($file->getFileName() == "out.log"){
echo file_get_contents((string)$file).PHP_EOL;
}else{
echo $file.PHP_EOL;
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment