Download the PHP package rishimohan/orshot without Composer

On this page you can find all versions of the php package rishimohan/orshot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package orshot

Orshot API PHP SDK

View on Packagist: https://packagist.org/packages/rishimohan/orshot

Installation

Usage

If you don't have your API key, get one from orshot.com

renderFromStudioTemplate

Render from a custom Studio template. Supports image, PDF, video generation and publishing to social accounts.

Generate Image

Generate PDF

Generate Video

Publish to Social Accounts

Schedule a Post

Parameters

key required description
templateId Yes ID of the Studio template (integer).
modifications No Array of dynamic modifications for the template.
response.type No base64, binary, url (Defaults to url).
response.format No png, webp, jpg, jpeg, pdf, mp4, webm, gif (Defaults to png).
response.scale No Scale of the output (1 = original, 2 = double). Defaults to 1.
response.includePages No Page numbers to render for multi-page templates (e.g. [1, 3]).
response.fileName No Custom file name (without extension). Works with url and binary types.
pdfOptions No { margin, rangeFrom, rangeTo, colorMode, dpi }
videoOptions No { trimStart, trimEnd, muted, loop }
publish.accounts No Array of social account IDs from your workspace.
publish.content No Caption/text for the social post.
publish.isDraft No true to save as draft instead of publishing.
publish.schedule.scheduledFor No ISO date string to schedule the post.
publish.timezone No Timezone string (e.g. "America/New_York").
publish.platformOptions No Per-account options keyed by account ID.

renderFromTemplate

Render from a pre-built Orshot template.

key required description
templateId Yes ID of the template (open-graph-image-1, tweet-image-1, etc.)
modifications Yes Modifications for the selected template.
responseType No base64, binary, url (Defaults to url).
responseFormat No png, webp, pdf, jpg, jpeg (Defaults to png).

For available templates and their modifications refer Orshot Templates Page

generateSignedUrl

Generate a signed URL for a template.

key required description
templateId Yes ID of the template.
modifications Yes Modifications for the selected template.
expiresAt Yes Expires at in unix timestamp (Number).
renderType No images, pdfs (Defaults to images).
responseFormat No png, webp, pdf, jpg, jpeg (Defaults to png).

Local development and testing

Run these from the project root

composer config repositories.local '{"type": "path", "url": "/path/to/your/library"}' --global

Update the url to the path of the library in your computer.

In a separate test directory, run this

composer require rishimohan/orshot:@dev

Write a small PHP script test.php in the test directory using the above exposed functions and run php test.php


All versions of orshot with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rishimohan/orshot contains the following files

Loading the files please wait ...