2017 © Pedro Peláez
 

library publisher

Library to publish multiple entries (all at once).

image

publisher/publisher

Library to publish multiple entries (all at once).

  • Wednesday, November 29, 2017
  • by JLueke
  • Repository
  • 1 Watchers
  • 1 Stars
  • 27 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Publisher

Publish / post via OAuth1 and OAuth2 services., (*1)

Publisher offers classes and interfaces that allow you to post several entries at once., (*2)

Main components

  • Entry
    • EntryInterface and AbstractEntry as an abstraction of entries in a social network
  • Mode
    • a strategy of filling an Entry with content
  • Selector
    • helps you to collect all parameters that the entry requires (e.g. a forum id if you want to post in a forum)
  • Publisher
    • manages postings of multiple entries at once

Installation

The recommended way to install this is through composer., (*3)

Edit your composer.json and add:, (*4)

{
    "require": {
        "publisher/publisher": "dev-master"
    }
}

And install dependencies:, (*5)

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install

Suggestions

  • Entry
    • publisher/entry_facebook -> adds entries for posting on Facebook
    • publisher/entry_twitter -> adds entries for posting on Twitter
    • publisher/entry_xing -> adds entries for posting on XING
  • Mode
    • publisher/mode_recommendation -> adds mode for publishing

Examples

Examples of basic usage are located in the examples/ directory., (*6)

Development

Package structure (namespaces)

Szenario: A Service (e.g. social network) called 'Foo' offers to post a status and to post in groups that the user is a member of., (*7)

FooEntry: - Selector - FooGroupSelector.php - FooUserEntry.php - FooGroupEntry.php, (*8)

Then we have a mode called 'Recommendation'. It provides the content generation, (*9)

Recommendation - Resources - config - validation.yml - views - recommendation.html.twig - src - AbstractRecommendation.php - Form - Type RecommendationType.php, (*10)

Modes should provide a Form and an base Entity for mapping and for validation. Entries that implement a Mode should implement the abstract entity given by the Mode., (*11)

FooRecommendation - Resources - config - validation.yml - src - FooUserRecommendation.php - FooGroupRecommendation.php, (*12)

Please refer to the following repositories for examples:

  • Entry
    • publisher/entry_facebook
    • publisher/entry_twitter
    • publisher/entry_xing
  • Mode
    • publisher/mode_recommendation
  • Entity
    • publisher/entity_facebook_recommendation
    • publisher/entity_twitter_recommendation
    • publisher/entity_xing_recommendation

Naming Conventions

  • EntyNamespace: Publisher\Entry\ServiceId
  • EntryClassName: ServiceId(User|Page|Group|Forum)Entry, (*13)

  • SelectorNamespace: Publisher\Entry\ServiceId\Selector, (*14)

  • SelectorClassName: ServiceId(User|Page|Group|Forum)Selector

The Selector should be matching with the id of the Entry that it belongs to. If their is no Selector needed, then their is no need to implement one. But you should add the 'Selector' directory nonetheless., (*15)

  • ModeNamespace: Publisher\Mode\ModeId
  • ModeClass: ModeIdMode

Then we have the EntryModeEntities. The implement an base mode entity like AbstractRecommendation for a specific entry type of a service., (*16)

  • EntityNamespace: Publisher\Entry\ServiceId\Mode\ModeId\
  • EntityClass: EntryIdModeId

It is recommended to follow these conventions. In this way you can rely on the already implemented Supervisor to find the Entries and Modes, when the EntryHelper requires them., (*17)

The Versions

29/11 2017

dev-develop

dev-develop

Library to publish multiple entries (all at once).

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Jacqueline Lueken

oauth post publish publisher

29/11 2017

dev-feature/complete_documentation

dev-feature/complete_documentation

Library to publish multiple entries (all at once).

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Jacqueline Lueken

oauth post publish publisher

29/11 2017

dev-feature/create_separate_config_check

dev-feature/create_separate_config_check

Library to publish multiple entries (all at once).

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Jacqueline Lueken

oauth post publish publisher

26/11 2017

dev-create_independent_Selector

dev-create_independent_Selector

Library to publish multiple entries (all at once).

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Jacqueline Lueken

oauth post publish publisher

19/04 2017

dev-master

9999999-dev

Library to publish multiple entries (all at once).

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jacqueline Lueken

oauth post publish publisher

19/04 2017

0.9.1

0.9.1.0

Library to publish multiple entries (all at once).

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jacqueline Lueken

oauth post publish publisher

28/12 2016

0.7

0.7.0.0

Library to publish multiple entries (all at once).

  Sources   Download

MIT

The Requires

 

by Jacqueline Lueken

oauth post publish

28/12 2016

0.9

0.9.0.0

Library to publish multiple entries (all at once).

  Sources   Download

MIT

The Requires

 

by Jacqueline Lueken

oauth post publish

28/12 2016

dev-remove_Mode_dependencies_from_Entry

dev-remove_Mode_dependencies_from_Entry

Library to publish multiple entries (all at once).

  Sources   Download

MIT

The Requires

 

by Jacqueline Lueken

oauth post publish