Download the PHP package dugan/sprintly-php without Composer

On this page you can find all versions of the php package dugan/sprintly-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sprintly-php

Sprintly-PHP

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads Latest Unstable Version License

This is a library that wraps the Sprint.ly API for PHP 5.4+.

API Status: (:heavy_check_mark: Complete, :interrobang: In Progress, :x: Todo)

"CRUD" should be interpreted as:

Create resource, delete resource, retrieve all of resource, retrieve 1+ resource, update resource

:heavy_check_mark: Product CRUD

:heavy_check_mark: Product People CRUD

:heavy_check_mark: Product Item CRUD

:heavy_check_mark: Perform lightweight queries of a product's items

:heavy_check_mark: Retrieve children of an item

Quickstart

This package requires Composer

How it Works

Under the hood, we use the Guzzle library to consume the Sprintly API

Top level entities can be accessed using the wrapper methods in Dugan\Sprintly\SprintlyService, or you can use the service to retrieve the individual repositories and work with them.

Authenticating

Sprintly's API uses HTTP auth with an email address and Auth token which you can retrieve from their website. All API methods require authentication, and several require you to have administrator status on a given product.

How to instantiate the API with your credentials:

$service = \Dugan\Sprintly\SprintlyService::instance($myEmail, $myAuthkey);

All examples after this will assume $service has already been instantiated with your credentials.

Since the SprintlyService implements the Singleton pattern, we can avoid having to repeatedly instantiate it when it is needed in different places. To retrieve an existing instance, simply call:

\Dugan\Sprintly\SprintlyService::instance()

Common Functionality

Instead of repeating the following code snippets several times, I will let it suffice to say that most repositories implement the two following methods, used in 3 different ways. We'll demonstrate with the PeopleRepository, but the same methods will exist on other repositories.

To retrieve all of a resource (the index):

$service->getPeopleRepository()->all()

To retrieve a single resource (the GET):

$service->getPeopleRepository()->get($id)

To retrieve a collection of resources, but not all of them:

$service->getPeopleRepository()->get([$firstId, $secondId])

Note this will execute multiple HTTP requests, so when working with more than a couple resources, it is often more efficient to retrieve all resources and filter them locally.

There are also wrapper methods for retrieving an entity's repository through the service:

$service->products()->get($id)

$service->items()->all()

etc

Products

The Product is top-level entity in Sprintly. It has items, people, attachments, tags, etc related to it, which can all be accessed through the API.

Retrieve all products:

Using SprintlyService

$service->getAllProducts()

Returns an array of \Dugan\Sprintly\Entities\Product

Retrieve a single product:

Using SprintlyService

$service->getProduct($id)

Returns an instance of \Dugan\Sprintly\Entities\Product

Retrieve a collection of products (but not all of them!):

Using SprintlyService

$service->getProduct([$firstId, $secondId])

Using ProductsRepository

$service->getProductsRepository()->get([$firstId, $secondId])

Returns an array of \Dugan\Sprintly\Entities\Product

<<<<<<< HEAD The returned product will have several properties on it which are available for your use:

The webhook is especially useful if you want to integrate Sprintly with GitHub or Bitbucket for closing items via commit messages.

The Product ID

Most of the entities represented by the Sprintly API are only accessible in the context of a product.

Unless otherwise noted, from here on out you should assume all code examples are preceded by:

$service->setProductId($productId)

This will allow the service to automatically inject the product ID into the appropriate repositories before returning them back to you.

Note that the SprintlyService is a singleton, and will therefore retain the last product ID set on it until you set another product ID on it.

Users

In the Sprintly verbiage, users are called people and person. The API wrapper reflects this. You can only retrieve people in the context of a product.

To invite a user to a product:

Items

Items are the stories, tasks, defects, etc that belong to a product. Again, these can only be retrieved in the context of a product.

To create a new item:

To retrieve an item's children:

Annotations

Attachments

Comments

Tags


All versions of sprintly-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
guzzlehttp/guzzle Version ~5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dugan/sprintly-php contains the following files

Loading the files please wait ....