Download the PHP package simondavies/veezi-api-wrapper without Composer
On this page you can find all versions of the php package simondavies/veezi-api-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download simondavies/veezi-api-wrapper
More information about simondavies/veezi-api-wrapper
Files in simondavies/veezi-api-wrapper
Package veezi-api-wrapper
Short Description A simple PHP website wrapper for the Veezi API.
License MIT
Informations about the package veezi-api-wrapper
Veezi-API-Wrapper
A basic PHP wrapper for the Veezi API.
THIS IS STILL IN DEVELOPEMENT AND CAN CHANGE
While being asked to look into the Veezi API, to enable a website to display its relevant film data onto the site, so not to duplicate work etc. I would need to do a bit of work to manipulate the current data returned, to be used on a website, so not being able to find any current PHP code for use with the Veezi API, thought be nice to build this and thne make it available to Veezi as well as others.
Official Documentation
Offical documentation on the Veezi API can be found Veezi API
Code Examples
Included within the repo is an examples folder, here you can find a few working examples of the various options.
Film Listings
Get and display a list of films
Selected Film
There are also other options available to a film instance, some more below.
$film->getGenre()
$film->getFormat()
$film->getLanguage()
$film->getDatesAndTimes()
$film->getRoles()
There are also some that are returned as Arrays and other objects, take the $film->getStartDate()
, what is returned is a Carbon instance, so it can be converted using any of the methods available through Carbon,
Selected Film Poster
Currently it is NOT possible to gain access to the actual poster. As the posters are currently stored within the protected area of their severs, and in order gain access via a URL you will need to be signed in to the Veezi system.
So adding the url to the posters will fail for now. Veezi are looking into switchign this, so that they can also be referenced. in the mean time, in order to display posters, you will need to work on your own version/method.
If you need any ideas or solutions please feel free to contact me, on how i get around this.
Film Roles
Sort people and prepare a list of roles. (Actor/Director/Producer)
The output would be somethig like:
Actors | Directors | Producers |
---|---|---|
Actor Name | Directors Name | Producers Name |
Film Dates/Times & Ticket Links
List the selected films Dates and times, with booking links on the times.
You can also get a list of dates and times for the selected film to display as clickable links to book tickets.
Requiremnents
- PHP >= 5.4.0
- Veezi Active Account
- Veezi API Token
- guzzlehttp/guzzle
- nesbot/Carbon
Installation
The recommended way to install this repo is through Composer
Install Through Composer
If your using thsi as the initial project then you can install via:
Else to include within in a current project run
Install Via Github/Without Composer
Via SSH
Via HTTPS
Set Up
Once the project has been downloaded we need to continue the initial set up.
Add a config file.
Update the following details with your Veezi API and Site Tokens.
Once thats been done, you can check that all is OK by visiting the Examples folder within a Browser.
Please view the other required repos' install guidelines, if not installing from composer.
To Do
As this is currently on going I have a list of to do's below:
- [x] Build the Film Classes
- [ ] Build the Cinema classe(s)
- [ ] Build the Screen classe(s)
- [x] Add examples
- [x] Create booking links for films
- [x] Create film dates for each film
- [ ] More in-depth read me file or wiki
License
The Veezi-API-Wrapper is open-sourced software licensed under the MIT license