• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

api-platform/activity-pub: API Platform ActivityPub Support

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

api-platform/activity-pub

开源软件地址(OpenSource Url):

https://github.com/api-platform/activity-pub

开源编程语言(OpenSource Language):

PHP 100.0%

开源软件介绍(OpenSource Introduction):

API Platform ActivityPub

⚠️ This project is highly experimental, it isn't suitable for production yet ⚠️

API Platform ActivityPub is a bundle for the API Platform framework and Symfony providing support for the ActivityPub protocol and for the ActivityStreams vocabulary.

The ActivityPub protocol is a decentralized social networking protocol. It provides a client to server API for creating, updating and deleting content, as well as a federated server to server API for delivering notifications and content.

API Platform ActivityPub allows to easily add support for ActivityPub to new or existing API Platform projects, while still being able to benefit from all API Platform features (yes, including Mercure, Vulcain and GraphQL!)

Install

Install API Platform or Symfony

If it's not already done!

Install the Bundle

composer require api-platform/activity-pub

Generate the ActivityPub Entities

Install API Platform Schema Generator:

composer require --dev api-platform/schema-generator

Alternatively, you can download the PHAR version.

⚠️ Currently, this development version must be used to generate the schema

Then generate the entities:

../schema-generator/bin/schema generate src vendor/api-platform/activity-pub/build/schema.yaml

If you want to tweak the generated files, copy and adapt the provided configuration file. The generation is a one time operation, then you can edit the entities to fit your need and remove api-platform/schema-generator.

Configure Doctrine, API Platform and Symfony

See the test configuration in tests/app/index.php

TODO

Spec

Other / Related

Code

  • See the TODOs in the source code
  • Open source (and / or rewrite) the tests
  • Add interfaces for final classes
  • Create a Symfony recipe
  • Add support for MySQL and other DBMS (currently only Postgres is supported because of this custom DQL function)

Credits

Created by Kévin Dunglas. Sponsored by Les-Tilleuls.coop.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap