Skip to content

Commit

Permalink
Merge pull request #4 from romainneutron/v3
Browse files Browse the repository at this point in the history
v 0.3 : Add data serialization
  • Loading branch information
romainneutron committed Jan 14, 2013
2 parents 8f215c9 + 5a78c66 commit 49a9b3b
Show file tree
Hide file tree
Showing 29 changed files with 833 additions and 189 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -7,5 +7,7 @@ before_script:
- php composer.phar install --dev

php:
- 5.3.3
- 5.3
- 5.4
- 5.5
23 changes: 6 additions & 17 deletions README.md
@@ -1,31 +1,21 @@
MediaVorus - A tiny PHP lib for playing with MultiMedia Files
=============================================================
MediaVorus
==========

[![Build Status](https://secure.travis-ci.org/romainneutron/MediaVorus.png?branch=master)](http://travis-ci.org/romainneutron/MediaVorus)

This lib is under heavy development !
A lib to get every technical informations about your files

#Exemple

```php
<?php

use MediaVorus\MediaVorus;
use MediaVorus\Media\Image;
use MediaVorus\Media\Video;

$mediavorus = MediaVorus::create();

$Image = $mediavorus->guess('RawCanon.cr2');

echo sprintf("File dimensions are %d x %d", $Image->getWidth(), $Image->getHeight());
echo sprintf("Photo as been taken at %s Shutter Speed", $Image->getShutterSpeed());

$Video = $mediavorus->guess('Movie.mpeg');

echo sprintf("Movie duration last %s s.", $Video->getDuration());
echo sprintf("Movie has been shot at longitude %s, latitude %s", $Video->getLongitude(), $Video->getLatitude());
$image = $mediavorus->guess('RawCanon.cr2');

echo sprintf("Photo as been taken with a %s Shutter Speed", $Image->getShutterSpeed());
```

#Documentation
Expand All @@ -34,5 +24,4 @@ Documentation is hosted on Read The Docs http://mediavorus.readthedocs.org/

#License

MediaVorus is released under MIT license http://opensource.org/licenses/MIT

MediaVorus is released under the [MIT license](http://opensource.org/licenses/MIT)
9 changes: 8 additions & 1 deletion composer.json
Expand Up @@ -13,16 +13,23 @@
],
"require": {
"php": ">=5.3.0",
"doctrine/common": ">=2.2, <=2.3.x-dev",
"symfony/http-foundation": ">2.0,<=2.2",
"symfony/console": ">2.0,<=2.2",
"phpexiftool/phpexiftool": "dev-master",
"php-ffmpeg/php-ffmpeg": "dev-master",
"monolog/monolog": "1.*"
},
"suggest": {
"jms/serializer": "To serialize Medias",
"symfony/yaml": "To serialize Medias in Yaml format"
},
"minimum-stability": "dev",
"require-dev": {
"fabpot/php-cs-fixer": "*",
"silex/silex": "1.0.*-dev"
"silex/silex": "1.0.*-dev",
"symfony/yaml": "*",
"jms/serializer": "1.0.x-dev"
},
"autoload": {
"psr-0": {
Expand Down

0 comments on commit 49a9b3b

Please sign in to comment.