v4.0.0
What's Changed
- Update to new Review system by @irfan-dahir in #476
- Maintenance PR by @irfan-dahir in #479
Full Changelog: v3.3.2...v4.0.0
Major Version Release
This is because the Review API has been completely revamped and is no longer backwards compatible.
Reviews
$data = $jikan->getReviews( new \Jikan\Request\Reviews\ReviewsRequest( \Jikan\Helper\Constants::MANGA, // type 1, // page \Jikan\Helper\Constants::REVIEWS_SORT_MOST_VOTED, // sort true, // show spoilers true // show preliminary ) );
Parses: https://myanimelist.net/reviews.php?t=manga&spoiler=on&preliminary=on&sort=mostvoted
Anime/Manga Reviews
$data = $jikan->getAnimeReviews( new \Jikan\Request\Anime\AnimeReviewsRequest( 1, // MAL ID 1, // page \Jikan\Helper\Constants::REVIEWS_SORT_MOST_VOTED, //sort true, // show spoilers false // show preliminary ) );
Parses: https://myanimelist.net/anime/1/Cowboy_Bebop/reviews?sort=mostvoted&spoiler=on&preliminary=off
User Reviews
$data = $jikan->getUserReviews( new \Jikan\Request\User\UserReviewsRequest('Stark700', 1) // username and page );