{"id":13660203,"url":"https://github.com/64robots/php-notion","last_synced_at":"2025-04-19T16:39:30.003Z","repository":{"id":47106484,"uuid":"367115570","full_name":"64robots/php-notion","owner":"64robots","description":"PHP API for Notion","archived":false,"fork":false,"pushed_at":"2021-09-13T10:06:08.000Z","size":53,"stargazers_count":19,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-11T18:56:44.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/64robots.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null}},"created_at":"2021-05-13T16:53:55.000Z","updated_at":"2024-07-31T00:17:16.000Z","dependencies_parsed_at":"2022-09-23T11:32:38.379Z","dependency_job_id":null,"html_url":"https://github.com/64robots/php-notion","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Fphp-notion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Fphp-notion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Fphp-notion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Fphp-notion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/64robots","download_url":"https://codeload.github.com/64robots/php-notion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249223935,"owners_count":21232833,"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":[],"created_at":"2024-08-02T05:01:18.345Z","updated_at":"2025-04-19T16:39:29.974Z","avatar_url":"https://github.com/64robots.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Access Notion API from you PHP application\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/64robots/php-notion.svg?style=flat-square)](https://packagist.org/packages/64robots/php-notion)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/64robots/php-notion/run-tests?label=tests)](https://github.com/64robots/php-notion/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/64robots/php-notion/Check%20\u0026%20fix%20styling?label=code%20style)](https://github.com/64robots/php-notion/actions?query=workflow%3A\"Check+%26+fix+styling\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/64robots/php-notion.svg?style=flat-square)](https://packagist.org/packages/64robots/php-notion)\n\nThis package allows you to use the Notion API from PHP.\n\n## Installation\n\nThis package requires PHP =\u003e 7.4.\nYou can install the package via composer:\n\n```bash\ncomposer require 64robots/php-notion\n```\n\n## Usage\n\nYou need to create an instance of the `Notion` class using your [Notion Internal Integration Token](https://developers.notion.com/docs/getting-started)\n\nNow you can invoke the resource method you need (`databases` in this example) \n\n```php\nuse R64\\PhpNotion\\Notion;\n\n$notion = new Notion('secret_access_token');\n\n$database = $notion-\u003edatabases()-\u003eretrieve('a65b5216-46cb-479b-961e-67cc7b05a56d');\n```\n## Resources\n\n### Databases\n\n#### Retrieve a Database\n[Notion Retrieve Database documentation](https://developers.notion.com/reference/get-database)\n```php\n$database = $notion-\u003edatabases()-\u003eretrieve('a65b5216-46cb-479b-961e-67cc7b05a56d');\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [64 Robots](https://github.com/64robots)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F64robots%2Fphp-notion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F64robots%2Fphp-notion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F64robots%2Fphp-notion/lists"}