PHP code example of railken / mangafox
1. Go to this page and download the library: Download railken/mangafox library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
railken / mangafox example snippets
# Creating a new instance of manager
$manager = new \Railken\Mangafox\Mangafox();
# Searching a manga
$results = $manager
->search()
->type('any')
->name('contains', 'One Piece')
->author('contains', 'Oda Eiichiro')
->artist('contains', 'Oda Eiichiro')
->genres(' $manager
->scan('one_piece', 1, 1)
->get();
# Retrieving last updates
$results = $manager->releases()->page(1)->get();
# Perform a query in the directory
$results = $manager
->directory()
->browseBy('genre', 'Action')
->sortBy('name')
->page(1)
->get();