dev-master
9999999-deva minimal library to download ebooks from packtub.com
Apache-2.0
The Requires
- php >=5.6
- monolog/monolog ~1.23
by Daniel Mecsei
ebook packtub
Wallogit.com
2017 © Pedro Peláez
a minimal library to download ebooks from packtub.com
packtub-crawler is a simple, minimalistic PHP library to crawl your ebooks from https://www.packtpub.com. You can list your available books, and download those in different formats with source code (if available)., (*1)
Install the latest version with, (*2)
$ composer require alphabox/packtub-crawler
A simple usage example to list your all available ebook., (*3)
pushHandler(new StreamHandler('php://stdout', Logger::DEBUG));
//Login to Packtub site
$logger->info("Login to packtub.com");
$packtub = new PacktubSite($logger);
$packtub->login('user@example.com', "supersecretpassword");
$logger->info("Get and list available books.");
foreach( $packtub->getAvailableBooks() as $title => $formats ) {
$logger->info($title);
}
?>
This project licensed under Apache 2.0 License - see the LICENSE file for details, (*4)
a minimal library to download ebooks from packtub.com
Apache-2.0
ebook packtub