| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
PHP client library for the FilePreviews.io service. Generate image previews and metadata from almost any kind of file.
composer require filepreviews/filepreviews
$fp = new FilePreviews\FilePreviews([
'api_key' => 'API_KEY_HERE',
'api_secret' => 'API_KEY_HERE'
]);
$response = $fp->generate($url);
print_r($response);
$response = $fp->retrieve($response->id);
print_r($response);You can optionally send an options associative array.
$fp = new FilePreviews\FilePreviews([
'api_key' => 'API_KEY_HERE',
'api_secret' => 'API_KEY_HERE'
]);
$options = [
'size' => [
'width' => 250,
'height' => 250
],
'format' => 'jpg',
'pages' => '1',
'metadata' => ['exif', 'ocr', 'psd'],
'data' => ['foo' => 'bar']
];
$response = $fp->generate($url, $options);
print_r($response);| Back | FazBrowse Home | New Git URL |