{"id":36994892,"url":"https://github.com/alphabox/packtub-crawler","last_synced_at":"2026-01-13T23:47:10.250Z","repository":{"id":56986533,"uuid":"106131166","full_name":"alphabox/packtub-crawler","owner":"alphabox","description":"A simple PHP library to crawl your ebooks from packtub.com (https://www.packtpub.com/packt/offers/free-learning)","archived":false,"fork":false,"pushed_at":"2018-02-25T20:59:11.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-15T02:35:27.470Z","etag":null,"topics":["ebook-downloader","packtpub","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alphabox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-07T21:18:03.000Z","updated_at":"2023-07-15T02:35:27.471Z","dependencies_parsed_at":"2022-08-21T13:20:19.863Z","dependency_job_id":null,"html_url":"https://github.com/alphabox/packtub-crawler","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/alphabox/packtub-crawler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphabox%2Fpacktub-crawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphabox%2Fpacktub-crawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphabox%2Fpacktub-crawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphabox%2Fpacktub-crawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alphabox","download_url":"https://codeload.github.com/alphabox/packtub-crawler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphabox%2Fpacktub-crawler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ebook-downloader","packtpub","php"],"created_at":"2026-01-13T23:47:10.178Z","updated_at":"2026-01-13T23:47:10.242Z","avatar_url":"https://github.com/alphabox.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# packtub-crawler\n## Introduction\npacktub-crawler is a simple, minimalistic PHP library to crawl your ebooks from https://www.packtpub.com.\nYou can list your available books, and download those in different formats with source code (if available).\n\n## Installation\nInstall the latest version with\n```bash\n$ composer require alphabox/packtub-crawler\n```\n\n## Usage\nA simple usage example to list your all available ebook.\n```php\n\u003c?php\n\ninclude_once __DIR__ . '/vendor/autoload.php';\n\nuse Alphabox\\PacktubCrawler\\PacktubSite;\n\nuse Monolog\\Logger;\nuse Monolog\\Handler\\StreamHandler;\n\n$logger = new Logger('stdout');\n$logger-\u003epushHandler(new StreamHandler('php://stdout', Logger::DEBUG));\n\n//Login to Packtub site\n$logger-\u003einfo(\"Login to packtub.com\");\n$packtub = new PacktubSite($logger);\n$packtub-\u003elogin('user@example.com', \"supersecretpassword\");\n\n$logger-\u003einfo(\"Get and list available books.\");\nforeach( $packtub-\u003egetAvailableBooks() as $title =\u003e $formats ) {\n    $logger-\u003einfo($title);\n}\n\n?\u003e\n```\n\n## License\nThis project licensed under Apache 2.0 License - see the [LICENSE](LICENSE) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphabox%2Fpacktub-crawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falphabox%2Fpacktub-crawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphabox%2Fpacktub-crawler/lists"}