Download the PHP package borodin-vasiliy/php-stories without Composer

On this page you can find all versions of the php package borodin-vasiliy/php-stories. 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 php-stories

PHP Stories

PHP-Library for create video-stories (MP4) using images, text and animations for them. Dependence of the GD-library. This library create stories frame by frame and after that create video using ffmpeg. ffmpeg should be installed on your server!

Quick Start

Install the library using composer:

composer require borodin-vasiliy/php-stories

Examples

On examples dir you can found 2 samples how to use this library, below i will show how to create stories.

Create object of the library

How you can see, args of library is array with some params. Which params you can use:

All params are not required. If not set than, library will use default values 720x1280px, 5 seconds, 30 fps.

Now your future stories is ready for adding some elements to the video. In current moment you can add image, text, rectangle, ellipse with animation for them.

Add objects to stories

Library has methods for adding each type of objects. Every time args of method - array of params. All object-types has general params:

And objects has additional params for this type. Lets learn, how to add each type of object to video and which params we can use.

Add image to stories

Additional params for images:

Add text to stories

Additional params for text:

Add rectangle to stories

Additional params for rectangle:

Add ellipse to stories

Additional params for ellipse:

Animation

Each object on video can be animated. Animation is change some param from start-value to animated value. Count of animations not limited. Each animation has own duration. Duration can be less then life-time of this element. When animation is done, animated param will be set like final point.

All types of objects has general params for animation:

And additional (just for this type):

This library use Fluent Interface. That mean, you add element, after that can add animation for this element:

Generate stories

When you add all elements to your stories and set animation, you ready for generate animation and result video.

As arg of function - path to temporary dir, where will be saved frames and result video-file (MP4). As result of method generate() you will receive filename of result video in temporary dir. Generated frames will be automatically removed.

Sample of stories

https://github.com/borodin-vasiliy/php-stories/tree/master/examples/stories/tmp/9b2a0d77f24779937e78f749329630ac.mp4


All versions of php-stories with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
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 borodin-vasiliy/php-stories contains the following files

Loading the files please wait ....