{"id":17959550,"url":"https://github.com/dansup/php-activitystreams","last_synced_at":"2025-07-18T12:36:26.013Z","repository":{"id":56962244,"uuid":"70609985","full_name":"dansup/php-activitystreams","owner":"dansup","description":"Activity Streams is a simple specification used to describe social actions around the web.","archived":false,"fork":false,"pushed_at":"2017-12-31T20:52:41.000Z","size":27,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T07:53:02.563Z","etag":null,"topics":["activity-streams","activitystreams","indieweb","php","php-activitystreams"],"latest_commit_sha":null,"homepage":"https://www.w3.org/TR/activitystreams-core","language":"PHP","has_issues":false,"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/dansup.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-11T15:50:55.000Z","updated_at":"2024-08-28T01:50:37.000Z","dependencies_parsed_at":"2022-08-21T05:40:18.285Z","dependency_job_id":null,"html_url":"https://github.com/dansup/php-activitystreams","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansup%2Fphp-activitystreams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansup%2Fphp-activitystreams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansup%2Fphp-activitystreams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansup%2Fphp-activitystreams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dansup","download_url":"https://codeload.github.com/dansup/php-activitystreams/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245394629,"owners_count":20608116,"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":["activity-streams","activitystreams","indieweb","php","php-activitystreams"],"created_at":"2024-10-29T11:03:41.862Z","updated_at":"2025-03-25T03:31:12.983Z","avatar_url":"https://github.com/dansup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-activitystreams\n\n\u003e A PHP implementation of the Activity Streams 2.0 specification\n\n[![Software License][ico-license]](LICENSE.md)\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n\n**This package is in active development, this is not a complete implementation of ActivityStreams 2.0**\n\nA modern AS2 php library. At the moment, only the [object model type](https://www.w3.org/TR/activitystreams-core/#object) is partially implemented. I look forward to getting this feature complete by the end of summer 2017.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require dansup/php-activitystreams\n```\n\n## Usage\n\u003e Lets create a [basic object model](https://www.w3.org/TR/activitystreams-core/#object) and echo the response to a json encoded string.\n\n``` php\nuse Dansup\\ActivityStreams\\ServerFactory;\n\n$item = ServerFactory::create('object');\n\n$item-\u003etype('Note')\n$item-\u003eid('http://example.org/note/123');\n$item-\u003ename('Our Weather Is Fine');\n$item-\u003econtent('I feel that the weather is appropriate to our season and location.');\n$item-\u003eattributedTo([\n  'id' =\u003e 'http://joe.website.example/',\n  'type' =\u003e 'Person',\n  'name' =\u003e 'Joe Smith'\n]);\n$item-\u003eaddField('url', 'http://example.org/permalink/123');\n\necho $item-\u003eget();\n\n```\n### Result:\n``` json\n{\n \"@context\": \"https:\\/\\/www.w3.org\\/ns\\/activitystreams\",\n \"type\": \"Note\",\n \"id\": \"http:\\/\\/example.org\\/note\\/123\",\n \"name\": \"Our Weather Is Fine\",\n \"attributedTo\": {\n     \"id\": \"http:\\/\\/joe.website.example\\/\",\n     \"type\": \"Person\",\n     \"name\": \"Joe Smith\"\n },\n \"content\": \"I feel that the weather is appropriate to our season and location.\",\n \"published\": \"2017-04-21T01:31:20+00:00\",\n \"url\": \"http:\\/\\/example.org\\/permalink\\/123\"\n}\n```\n\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email danielsupernault@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Daniel Supernault][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/dansup/php-activitystreams.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/dansup/php-activitystreams/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/dansup/php-activitystreams.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/dansup/php-activitystreams.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/dansup/php-activitystreams.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/dansup/php-activitystreams\n[link-travis]: https://travis-ci.org/dansup/php-activitystreams\n[link-scrutinizer]: https://scrutinizer-ci.com/g/dansup/php-activitystreams/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/dansup/php-activitystreams\n[link-downloads]: https://packagist.org/packages/dansup/php-activitystreams\n[link-author]: https://github.com/dansup\n[link-contributors]: ../../contributors\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansup%2Fphp-activitystreams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdansup%2Fphp-activitystreams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansup%2Fphp-activitystreams/lists"}