2017 © Pedro Peláez
 

library publish-workflow

Publish workflow library

image

fdevs/publish-workflow

Publish workflow library

  • Tuesday, June 21, 2016
  • by andrey1s
  • Repository
  • 3 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Publish Workflow Library

Build Status, (*1)

Documentation

Installation

Download the library by running the command:, (*2)

``` bash $ php composer.phar require fdevs/publish-workflow, (*3)


Composer will install the library to your project's `vendor/fdevs` directory. Diagram ------- The default publish workflow corresponds to the following diagram: ![following diagram](following-diagram.png) Usage ----- 1. Create model 2. Use service ### Create Model ```php <?php namespace App\Model; use FDevs\PublishWorkflow\Model\PublishTrait; use FDevs\PublishWorkflow\PublishInterface; class SameDocument implements PublishInterface { use PublishTrait; }

Use Service

$publishWorkflow = new FDevs\PublishWorkflow\PublishWorkflow();
$model = new App\Model\SameDocument();
$model->setPublishable(true);

echo $publishWorkflow->isPublish($model); //true


//start publishable tomorrow
$model
    ->setPublishable(true)
    ->setPublishStartDate(new \DateTime('tomorrow'))
;

echo $publishWorkflow->isPublish($model); //false

//end publishable tomorrow
$model
    ->setPublishable(true)
    ->setPublishEndDate(new \DateTime('tomorrow'))
;

echo $publishWorkflow->isPublish($model); //true

License

This library is under the MIT license. See the complete license in the Library:, (*4)

LICENSE

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*5)

The Versions

21/06 2016

dev-master

9999999-dev https://github.com/4devs/publish-workflow

Publish workflow library

  Sources   Download

MIT

The Requires

  • php >=5.4

 

publish workflow

21/06 2016

0.1.1

0.1.1.0 https://github.com/4devs/publish-workflow

Publish workflow library

  Sources   Download

MIT

The Requires

  • php >=5.4

 

publish workflow

20/03 2016

dev-suggest

dev-suggest https://github.com/4devs/publish-workflow

Publish workflow library

  Sources   Download

MIT

The Requires

  • php >=5.4

 

publish workflow

15/03 2016

0.1.0

0.1.0.0 https://github.com/4devs/publish-workflow

Publish workflow library

  Sources   Download

MIT

The Requires

  • php >=5.4

 

publish workflow