Download the PHP package orbitale/easyimpress-bundle without Composer
On this page you can find all versions of the php package orbitale/easyimpress-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package easyimpress-bundle
Impress Portfolio with a simple Symfony bundle
Want to create awesome presentations based on Impress.js?
With EasyImpressBundle, you can create presentations based on a single yml
configuration file.
Requirements
- PHP 5.5+ / 7.0+
- Composer
Installation
-
Install the bundle:
-
Add it to your Kernel:
-
Add routing instructions
-
Install necessary assets:
- Start creating presentations in your
%kernel.root_dir%/config/presentations/
directory!
Usage
Every slider is contained in the app/config/presentations
directory by default, and the file name is used as the
slider's identifier. This identifier will be the name displayed in the URL.
👉 Tip: You can override this directory by changing EasyImpress' configuration, view below.
app/Resource/presentations/{presentation_name}
will be accessible from /{presentation_name}
path.
Configuration and yaml files processing
Every file will be added to the container as a resource, so if it's modified in dev, cache will automatically be refreshed.
Yml files are found by Symfony Finder
in the PresentationsPass.
Presentations and slides configurations are processed via Symfony Config
component, you can check in the
Configuration directory for the configuration classes and references.
Retrieve presentations
You can get all presentations in the easy_impress
service, they will be transformed from arrays to immutable objects
at runtime.
Yml reference
As every presentation is made in the yml
format, here's the reference with default values:
Data attributes
As explained in ImpressJS Wiki:
Cartesian Position
Where in 3D space to position the step frame in Cartesian space.
data-x, data-y, data-z
Define the origin location in 3D Cartesian space. Specified in pixels (sort-of).
data-rotate
Rotation of the step frame about its origin in the X-Y plane. This is akin to rotating a piece of paper in front of your face while maintaining it's ortho-normality to your image plane (did that explanation help? I didn't think so...). It rotates the way a photo viewer rotates, like when changing from portrait to landscape view.
Polar Position
Rotation of the step frame about its origin along the theta (azimuth) and phi (elevation) axes. This effect is similar to tilting the frame away from you (elevation) or imaging it standing on a turntable -- and then rotating the turntable (azimuth).
data-rotate-x
Rotation along the theta (azimuth) axis
data-rotate-y
Rotation along the phi (elevation) axis
Size
data-scale
The multiple of the "normal" size of the step frame. Has no absolute visual impact, but works to create relative size differences between frames. Effectively, it is controlling how "close" the camera is placed relative to the step frame.
More information can be found on the Impress.js Wiki or the Impress.js documentation.
Configuration reference
License
This bundle is provided with MIT license, any contribution should be made under the same license.
All versions of easyimpress-bundle with dependencies
doctrine/collections Version ^1.0
symfony/framework-bundle Version ^3.3|^4.0
symfony/twig-bundle Version ^3.3|^4.0
twig/twig Version ^1.34|^2.4
symfony/asset Version ^3.3|^4.0