You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
3
+
4
+
JSON2Video API is the easiest way to create, edit and customise 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.
5
+
6
+
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.
7
+
8
+
Use cases
9
+
* Automate the production of promotional videos for your e-commerce products
10
+
* Automate publication of social media videos created directly from your news feed
11
+
* Customize your advertising campaigns with different images, videos, texts and create tens or hundreds of different options
12
+
* From weather forecasts to traffic bulletins or financial reports, if you have a data source you can create an audiovisual experience
13
+
* Convert your text, pictures and information into engaging videos of your real estate properties
14
+
* Add watermarks, bumpers, titles; Concatenate different videos into one; Add voice-over or music; Create photo slideshows; …
15
+
16
+
17
+
## Get your FREE API Key
18
+
JSON2Video is free to use. Get your API Key at [JSON2Video.com](https://json2video.com)
19
+
20
+
## Documentation
21
+
The [API Specification](https://json2video.com/docs/api/) will provide you with all the details of the JSON payload and the endpoints.
22
+
23
+
For a step by step guide, read the [Tutorial](https://json2video.com/docs/tutorial/) that will introduce you through all features with code examples.
24
+
25
+
## PHP SDK installation
26
+
You can use JSON2Video PHP SDK as a Composer package or with a simple require_once.
27
+
28
+
### Using require_once
29
+
The simplest way :-)
30
+
31
+
1) Download all.php from the /bundled folder into your project directory
32
+
2) Import the library:
33
+
34
+
```php
35
+
<?php
36
+
require_once 'path/to/the/sdk/all.php';
37
+
38
+
```
39
+
40
+
### Using Composer
41
+
The SDK has no external dependencies on other packages.
42
+
43
+
1) Open the terminal and cd to your project directory
44
+
2) Use composer:
45
+
46
+
```
47
+
$ composer require json2video/json2video-php-sdk
48
+
```
49
+
50
+
## Hello world
51
+
JSON2Video makes video creation easy as a piece of cake:
52
+
53
+
```php
54
+
<?php
55
+
// Create a new movie
56
+
$movie = new Movie;
57
+
58
+
// Set your API key
59
+
// Get your free API key at https://json2video.com
60
+
$movie->setAPIKey(YOUR_API_KEY);
61
+
62
+
// Set a project ID
63
+
$movie->project = 'myproj';
64
+
65
+
// Set movie quality: low, medium, high
66
+
$movie->quality = 'high';
67
+
68
+
// Create a new scene
69
+
$scene = new Scene;
70
+
71
+
// Set the scene background color
72
+
$scene->background_color = '#4392F1';
73
+
74
+
// Add a text element printing "Hello world" in a fancy way (basic/006)
75
+
// The element is 10 seconds long and starts 2 seconds from the scene start
76
+
// Element's vertical position is 50 pixels from the top
0 commit comments