romain / rendu-1
Find out about upcoming films !
1.0.0
2023-07-03 13:59 UTC
Requires
- symfony/css-selector: ^6.3
- symfony/dom-crawler: ^6.3
- symfony/http-client: ^6.3
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6 || ^10.2
This package is auto-updated.
Last update: 2025-05-01 00:13:57 UTC
README
This repository contains a library for scraping film release dates from a website It provides a simple and convenient way to retrieve upcoming film releases.
Installation 🛰️
To install the library, you can use Composer. Run the following command in your project directory:
composer require romain/rendu-1
Local development 📡
php vendor/bin/php-css-fixer fix src tests --rule-set=PSR12
php vendor/bin/phpstan analyse src tests --level max
php vendor/bin/phpunit tests
Usage 👨🚀
require_once 'vendor/autoload.php'; use Romain\Rendu1\FilmScraper; function printFilmReleases(array $filmReleases): void { foreach ($filmReleases as $film) { echo "Title: " . $film['title'] . "\n"; echo "Genres:\n"; foreach ($film['genres'] as $genre) { echo "- " . $genre . "\n"; } echo "\n"; } } $filmScraper = new FilmScraper(); $filmReleases = $filmScraper->scrapeNextFilmReleases(); printFilmReleases($filmReleases);
Contributing 💓
Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
License
This project is licensed under the MIT License