PHPackages                             json2video/json2video-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. json2video/json2video-php-sdk

ActiveSdk[API Development](/categories/api)

json2video/json2video-php-sdk
=============================

PHP SDK for JSON2Video API: Create videos programmatically

v2.0.5(1y ago)297.5k↑178.6%3MITPHPPHP &gt;=7.0

Since Dec 9Pushed 1y ago2 watchersCompare

[ Source](https://github.com/JSON2Video/json2video-php-sdk)[ Packagist](https://packagist.org/packages/json2video/json2video-php-sdk)[ RSS](/packages/json2video-json2video-php-sdk/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (9)DependenciesVersions (12)Used By (0)

Note: Updated for API v2.0

Create videos programmatically in PHP
=====================================

[](#create-videos-programmatically-in-php)

Create and edit videos: add watermarks, resize videos, create slideshows, add soundtrack, automate the creation of videos in multiple languages, add voice-over, add text animations.

[JSON2Video is a video editing API](https://json2video.com) that simplifies creating, editing and customising videos programmatically. Its dead simple approach, close to the web development mindset, makes it the ultimate solution for developers that want to create or customise videos in an automated way.

Additionally, the simple integration of real HTML5+CSS elements, the already built-in text animations and voice generation (TTS) converts JSON2Video in the best solution in its category.

Use cases

- Automate the production of promotional videos for your e-commerce products
- Automate publication of social media videos created directly from your news feed
- Customize your advertising campaigns with different images, videos, texts and create tens or hundreds of different options
- From weather forecasts to traffic bulletins or financial reports, if you have a data source you can create an audiovisual experience
- Convert your text, pictures and information into engaging videos of your real estate properties
- Add watermarks, bumpers, titles; Concatenate different videos into one; Add voice-over or music; Create photo slideshows; …

Get your FREE API Key
---------------------

[](#get-your-free-api-key)

JSON2Video is free to use. Get your API Key at [JSON2Video.com](https://json2video.com)

Documentation
-------------

[](#documentation)

The [API Specification](https://json2video.com/docs/api/) will provide you with all the details of the JSON payload and the endpoints.

For a step by step guide, read the [Tutorial](https://json2video.com/docs/tutorial/) that will introduce you through all features with code examples.

PHP SDK installation
--------------------

[](#php-sdk-installation)

You can use JSON2Video PHP SDK as a Composer package or with a simple require\_once.

### Using require\_once

[](#using-require_once)

The simplest way :-)

1. Download [all.php](https://github.com/JSON2Video/json2video-php-sdk/blob/main/bundled/all.php) from the /bundled folder into your project directory
2. Import the library:

```
