{"id":21762829,"url":"https://github.com/visavi/librator","last_synced_at":"2025-08-08T15:51:36.213Z","repository":{"id":62544435,"uuid":"45182897","full_name":"visavi/librator","owner":"visavi","description":"Class text library to read and process text from a file by pages","archived":false,"fork":false,"pushed_at":"2016-06-27T07:12:12.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T04:43:07.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://visavi.net","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/visavi.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-29T12:53:29.000Z","updated_at":"2016-06-27T07:10:44.000Z","dependencies_parsed_at":"2022-11-02T22:00:21.155Z","dependency_job_id":null,"html_url":"https://github.com/visavi/librator","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/visavi/librator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visavi%2Flibrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visavi%2Flibrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visavi%2Flibrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visavi%2Flibrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/visavi","download_url":"https://codeload.github.com/visavi/librator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visavi%2Flibrator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268289397,"owners_count":24226617,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-26T12:13:16.417Z","updated_at":"2025-08-08T15:51:36.154Z","avatar_url":"https://github.com/visavi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Class text library to read and process text from a file by pages\n\n[![Latest Stable Version](https://poser.pugx.org/visavi/librator/v/stable)](https://packagist.org/packages/visavi/librator)\n[![Total Downloads](https://poser.pugx.org/visavi/librator/downloads)](https://packagist.org/packages/visavi/librator)\n[![Latest Unstable Version](https://poser.pugx.org/visavi/librator/v/unstable)](https://packagist.org/packages/visavi/librator)\n[![License](https://poser.pugx.org/visavi/librator/license)](https://packagist.org/packages/visavi/librator)\n\nBasic useful feature list:\n\n * Reading text files\n * A breakdown of the text on page\n * Splits text based on the number of lines, number of words and characters to choose from\n * Beautiful displays pages, with the ability to jump to the last and first page\n * Automatic output of the header text from the first row\n * The output of the current page\n\n### Example of use\n\n```php\n\u003c?php\n// Connect class\ninclude 'src/Librator.php';\n\n// Open the text file library.txt\n$librator = new Visavi\\Librator('library.txt');\n\n// The number of output lines\n$librator-\u003eread(20);\n\n// Or split the file by the number of words\n$librator-\u003eread(300, 'words');\n\n// Or split the file by the number of characters\n$librator-\u003eread(2000, 'chars');\n\n// Get current page\n$librator-\u003ecurrentPage();\n\n// Automatic output of the header text from the first row\n$librator-\u003egetTitle();\n```\n\n### Installing\n\n```\ncomposer require visavi/librator\n```\n\n### License\n\nThe class is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisavi%2Flibrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisavi%2Flibrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisavi%2Flibrator/lists"}