Download the PHP package duellsy/pockpack without Composer

On this page you can find all versions of the php package duellsy/pockpack. 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 pockpack

Pocket API - PockPack docs

This package is for connecting to the Pocket API. check out their docs here

You'll need to register an app with pocket, and use the generated tokens provided in order for you to be able to connect to the API.

Build Status

Installation

Pockpack is installable via composer, the details are on packagist, here.

Add the following to the require section of your projects composer.json file:

In files that you want to use the Pockpack classes, be sure to add the namespaces you're going to use to the top of the file similar to the following, so your code can reference the classes without issue `

Authenticate

Get request token

Redirect the user to pockets auth page

Get users access token

Get users access token and username

Get reading list

Retreive reading list

This will return a full list of all active (unarchived) bookmarks, optionally you can have it also return extra information such as images. If you would prefer the result to be an array, you can send a second boolean value to the retrieve function set to true.

The options array allows you to control exactly what is returned from the API. For the full list of options, please check 'Optional Parameters' section of the pocket retrieve API (you can also see an example JSON response on this page)

Example 1: show all favorited bookmarks, complete with images

Example 2: show only unread bookmarks, complete with image

Add new bookmark

A simple example of adding a bookmark to your reading list:

The array that is sent to the add method can contain the following information:

Modify existing bookmark

The main flow to modify a bookmark is as follows

You first need to create the pockpack connection, then add something to the queue, and finally send the queue to pocket.

You can add as many items to the queue before sending, to send in bulk to keep things fast.

Archive bookmark

Re-add bookmark

Favorite bookmark

Unfavorite bookmark

Delete bookmark

Tagging Actions for bookmarks

The main flow of tagging is as follows

Add Tags

Remove Tags

Replace Tags

Clear Tags

Clear Tag does not require $tag_info but only $item_id

Contributing

Contributions are encouraged and welcome; to keep things organised, all bugs and requests should be opened in the github issues tab for the main project, at duellsy/pockpack/issues

All pull requests should be made to the develop branch, so they can be tested before being merged into the master branch.

Bitdeli Badge


All versions of pockpack with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
guzzle/guzzle Version 3.*
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 duellsy/pockpack contains the following files

Loading the files please wait ....