{"id":23009954,"url":"https://github.com/lywzx/php-epub","last_synced_at":"2025-08-14T04:33:06.458Z","repository":{"id":62520808,"uuid":"179695954","full_name":"lywzx/php-epub","owner":"lywzx","description":"epub book parser and maker","archived":false,"fork":false,"pushed_at":"2019-08-30T09:55:25.000Z","size":575,"stargazers_count":23,"open_issues_count":1,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-06T04:15:32.534Z","etag":null,"topics":["epub","epub-creater","parser"],"latest_commit_sha":null,"homepage":"https://www.lyblog.net","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lywzx.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":"2019-04-05T14:20:23.000Z","updated_at":"2023-08-11T23:08:30.000Z","dependencies_parsed_at":"2022-11-02T14:00:29.527Z","dependency_job_id":null,"html_url":"https://github.com/lywzx/php-epub","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lywzx%2Fphp-epub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lywzx%2Fphp-epub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lywzx%2Fphp-epub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lywzx%2Fphp-epub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lywzx","download_url":"https://codeload.github.com/lywzx/php-epub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229800365,"owners_count":18126028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["epub","epub-creater","parser"],"created_at":"2024-12-15T09:16:35.733Z","updated_at":"2024-12-15T09:16:36.407Z","avatar_url":"https://github.com/lywzx.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-epub parser and maker\n\n## About php-epub library\nphp-epub is a php library, for epub reader and maker. We can use it to read the ebook file and extract to cdn domain.\n\n## Installition\n\n### With Composer\n\n\u003e     composer require lywzx/php-epub\n\n\n\u003e     {\n\u003e        \"require\": {\n\u003e            \"lywzx/php-epub\": \"^0.0.2\"\n\u003e        }\n\u003e     }\n\n\u003e     require 'vendor/autoload.php'\n\u003e     \n\u003e     use lywzx\\php-epub\\EpubParser;\n\u003e\n\u003e     $epubParser = new EpubParser('./alice.epub');\n\n### Without Composer\n\nWhy are you not using composer? Download the php-epub [latest release](https://github.com/lywzx/php-epub/releases) and put the contents of the ZIP archive into a directory in your project. Then require the file `autoload.php` to get all classes and dependencies loaded on need.\n\n\u003e     \u003c?php\n\u003e           require_once 'path_to_php-epub_directory/autoload.php';\n\u003e         \n\u003e           use lywzx\\php-epub\\EpubParser;\n\u003e           \n\u003e           $epubParser = new EpubParser('./alice.epub');\n\n\n## epub parser use example\n\nget ebook metinfo\n\n\u003e     $epubParser = new EpubParser('./alice.epub');  // open file and check file is a validated epub\n\u003e    \n\u003e     $epubParser-\u003eparse();                          // parser file\n\u003e    \n\u003e     var_dump($epubParser-\u003egetTOC());                // you will get the book category tree, e.g 1.0\n\u003e    \n\u003e     var_dump($epubParser-\u003egetDcItem());              // you will get the book meta info, e.g 1.1\n\u003e\n\u003e     var_dump($epubParser-\u003egetDcItem('rights'))       // Public domain in the USA.\n\ne.g 1.0\n\n    array(2) {\n      [1]=\u003e\n      array(4) {\n        [\"id\"]=\u003e\n        string(4) \"np-1\"\n        [\"naam\"]=\u003e\n        string(22) \"THE \"STORYLAND\" SERIES\"\n        [\"src\"]=\u003e\n        string(65) \"www.gutenberg.org@files@19033@19033-h@19033-h-0.htm#pgepubid00000\"\n        [\"page_id\"]=\u003e\n        string(13) \"pgepubid00000\"\n      }\n      [3]=\u003e\n      array(5) {\n        [\"id\"]=\u003e\n        string(4) \"np-2\"\n        [\"naam\"]=\u003e\n        string(32) \"ALICE'S ADVENTURES IN WONDERLAND\"\n        [\"src\"]=\u003e\n        string(65) \"www.gutenberg.org@files@19033@19033-h@19033-h-0.htm#pgepubid00002\"\n        [\"page_id\"]=\u003e\n        string(13) \"pgepubid00002\"\n        [\"children\"]=\u003e\n        array(11) {\n          [5]=\u003e\n          array(5) {\n            [\"id\"]=\u003e\n            string(4) \"np-3\"\n            [\"naam\"]=\u003e\n            string(37) \"SAM'L GABRIEL SONS \u0026 COMPANY NEW YORK\"\n            [\"src\"]=\u003e\n            string(65) \"www.gutenberg.org@files@19033@19033-h@19033-h-0.htm#pgepubid00004\"\n            [\"page_id\"]=\u003e\n            string(13) \"pgepubid00004\"\n            [\"children\"]=\u003e\n            array(1) {\n              [7]=\u003e\n              array(4) {\n                [\"id\"]=\u003e\n                string(4) \"np-4\"\n                [\"naam\"]=\u003e\n                string(57) \"Copyright, 1916, by SAM'L GABRIEL SONS \u0026 COMPANY NEW YORK\"\n                [\"src\"]=\u003e\n                string(65) \"www.gutenberg.org@files@19033@19033-h@19033-h-0.htm#pgepubid00006\"\n                [\"page_id\"]=\u003e\n                string(13) \"pgepubid00006\"\n              }\n            }\n          }\n        }\n      }\n    }\n    \ne.g 1.1\n\n    array(9) {\n      [\"rights\"]=\u003e\n      string(25) \"Public domain in the USA.\"\n      [\"identifier\"]=\u003e\n      string(37) \"http://www.gutenberg.org/ebooks/19033\"\n      [\"contributor\"]=\u003e\n      string(15) \"Gordon Robinson\"\n      [\"creator\"]=\u003e\n      string(13) \"Lewis Carroll\"\n      [\"title\"]=\u003e\n      string(32) \"Alice's Adventures in Wonderland\"\n      [\"language\"]=\u003e\n      string(2) \"en\"\n      [\"subject\"]=\u003e\n      array(2) {\n        [0]=\u003e\n        string(7) \"Fantasy\"\n        [1]=\u003e\n        string(24) \"Fantasy fiction, English\"\n      }\n      [\"date\"]=\u003e\n      array(2) {\n        [0]=\u003e\n        string(10) \"2006-08-12\"\n        [1]=\u003e\n        string(32) \"2010-02-16T12:34:12.754941+00:00\"\n      }\n      [\"source\"]=\u003e\n      string(56) \"http://www.gutenberg.org/files/19033/19033-h/19033-h.htm\"\n    }\n\nmore example you can view example directory.\n\n\n## epub maker is in development.\ndocument is on the way.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flywzx%2Fphp-epub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flywzx%2Fphp-epub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flywzx%2Fphp-epub/lists"}