{"id":36974743,"url":"https://github.com/salimromadhon/php-telegraph-client","last_synced_at":"2026-01-13T22:02:00.037Z","repository":{"id":65165881,"uuid":"584299307","full_name":"salimromadhon/php-telegraph-client","owner":"salimromadhon","description":"The PHP Telegraph Client is a set of simple classes to interact with Telegra.ph.","archived":false,"fork":false,"pushed_at":"2023-01-04T12:29:14.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T19:11:41.530Z","etag":null,"topics":["telegram","telegraph","telegraph-api","telegraph-client"],"latest_commit_sha":null,"homepage":"","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/salimromadhon.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":"2023-01-02T06:43:18.000Z","updated_at":"2023-05-17T09:21:11.000Z","dependencies_parsed_at":"2023-01-13T15:45:44.532Z","dependency_job_id":null,"html_url":"https://github.com/salimromadhon/php-telegraph-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/salimromadhon/php-telegraph-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimromadhon%2Fphp-telegraph-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimromadhon%2Fphp-telegraph-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimromadhon%2Fphp-telegraph-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimromadhon%2Fphp-telegraph-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salimromadhon","download_url":"https://codeload.github.com/salimromadhon/php-telegraph-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimromadhon%2Fphp-telegraph-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28401987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: 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":["telegram","telegraph","telegraph-api","telegraph-client"],"created_at":"2026-01-13T22:01:59.961Z","updated_at":"2026-01-13T22:02:00.032Z","avatar_url":"https://github.com/salimromadhon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Telegraph Client\n\nThe PHP Telegraph Client is a set of simple classes to interact with [Telegra.ph](https://telegra.ph/).\n\n## Installation\n\n```\ncomposer require salimid/php-telegraph-client\n```\n\n## Usage\n\n``` php\nuse SalimId\\Telegraph\\Account;\nuse SalimId\\Telegraph\\Page;\n\n$account = Account::create([\n    'short_name' =\u003e 'John',\n    'author_name' =\u003e 'John Doe',\n]);\n\n$account = Account::find('d3b25feccb89e508a9114afb82aa421fe2a9712b963b387cc5ad71e58722');\n\n$account-\u003eshort_name = 'JD';\n$account-\u003esave()-\u003erevoke();\n\n$page = $account-\u003epage()-\u003ecreate(['title' =\u003e 'Hello World']);\n\n$pages = $account-\u003epages();\n\n$page = $pages-\u003efirst()-\u003erefresh();\n$page-\u003etitle = 'My First Post';\n$page-\u003esave();\n\n$account-\u003euse();\n\n$page = Page::find('Path-to-Page-XX-XX');\n\n$page = new Page;\n$page-\u003etitle = 'My Second Post';\n$page-\u003esave();\n\n$popular = $account-\u003epages()-\u003esortBy('views')-\u003ereverse()-\u003efirst()-\u003erefresh();\n$popular-\u003etitle = 'This Post Got ' . $popular-\u003eviews . ' Views';\n$popular-\u003esave();\n```\n\n## License \nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalimromadhon%2Fphp-telegraph-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalimromadhon%2Fphp-telegraph-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalimromadhon%2Fphp-telegraph-client/lists"}