Giter Club home page Giter Club logo

activity-pub's 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.