
, (*1)
Ce package vous permet d'extraire les principaux flux RSS de commeaucinema.com . Il a été produit par pur besoin, car les widgets en flash proposés sur le site sont pour moi dépassés., (*2)
Présentation
Ce package vous permet d'obtenir :, (*3)
- Les sorties cinéma de la semaine
- Les films actuellement en salle
- La liste des films qui sortiront prochainement
Les objets que vous obtenez :, (*4)
object(Rypsx\Commeaucinema\Cinema)[4]
public 'erreur' => array (size=0)
public 'titre' => string (length=42)
public 'lien' => string (length=81)
public 'description' => string (length=47)
public 'image' => string (length=55)
public 'ba' => string (length=62)
Utilisation
use Rypsx\Commeaucinema\Commeaucinema;
require __DIR__ . '/../vendor/autoload.php';
try {
$cac = new Commeaucinema();
} catch (Exception $e) {
print $e->getMessage();
}
echo '
' . var_export($cac, true) . '
';
Requis
PHP5 et Carbon., (*5)
Composer
Je vous conseille vivement l'utilisation de Composer.
Vous pouvez ajouter ce package en tapant la commande suivante dans votre terminal :, (*6)
composer require rypsx/commeaucinema
Ou en éditant le fichier composer.json, tel que :, (*7)
{
"require": {
"rypsx/commeaucinema": "^2.x"
}
Version 2.0
- Possibilité d'avoir la bande annonce de 2 manières :
- 1e : Pas fiable, méthode de manipulation de lien (Exec time : 500ms)
- 2e : Fiable, parse du site en récupérant la BA (Exec time : Variable entre 3.5s-6.5s)
English Version
API PHP commeaucinema.com
This package allows you to extract the main RSS feed commeaucinema.com. It was produced by pure need, because the flash widgets offered on the site are for me overwhelmed., (*8)
Presentation
This package will get you :, (*9)
- Cinema releases for this week
- Films now showing
- The list of films to be released soon
Objects you get :, (*10)
object(Rypsx\Commeaucinema\Cinema)[4]
public 'erreur' => array (size=0)
public 'titre' => string (length=42)
public 'lien' => string (length=81)
public 'description' => string (length=47)
public 'image' => string (length=55)
public 'ba' => string (length=62)
Usage
use Rypsx\Commeaucinema\Commeaucinema;
require __DIR__ . '/../vendor/autoload.php';
try {
$cac = new Commeaucinema();
} catch (Exception $e) {
print $e->getMessage();
}
echo '
' . var_export($cac, true) . '
';
Required
PHP5 and Carbon., (*11)
Composer
I highly recommend the use of Composer.
You can add this package by typing the following command in your terminal:, (*12)
composer require rypsx/commeaucinema
Or by editing the composer.json file, such as:, (*13)
{
"require": {
"rypsx/commeaucinema": "^2.x"
}
Version 2.0
- Possibility of having the trailer of 2 ways :
- 1e : Not reliable, link manipulation method (Exec time : 500ms)
- 2e : Reliable, parse of the site by recovering the trailer (Exec time : Variable btw 3.5s-6.5s)
Packagist
Packagist Repo URL, (*14)
License
The MIT License (MIT), (*15)
Copyright (c) 2016 RypsX Dev, (*16)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:, (*17)
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software., (*18)
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE., (*19)