Download the PHP package hpatoio/bitly-api without Composer

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

BitlyApi

This package is not maintained

Check phplicengine/bitly as a possible replacement.

Build Status Total Downloads Latest Stable Version SensioLabsInsight

PHP Library based on Guzzle to consume Bit.ly API.

The biggest advantage in using Guzzle is that you can easely attach Guzzle plugins to your client. Here, for example,you can see how to attach the log plugin and write all your requests to a file.

An integration with Symfony2 is available as well.

Versions

This project follow semantic versioning.

Installation

The recommended way to install this library is through Composer. For information about Composer and how to install in look here.

New project

From the command line run

Existing project

Move into your project directory and run

or add to your composer.json

and run

Usage

cURL options

It might be that bit.ly is unreachable and you want to set a specific timeout. Just set the cURL timeout options in the client:

Methods names

To get the method name remove "v3" from the API url and camelize the other words removing the slashes.

Examples:

Available methods

At the moment the library supports these APIs:

Behat

You need to copy Behat default configuration file and enter your access_token option there.

Now open behat.yml and change the string your_bitly_access_token_here with your access token. Run the suite typing

Integrations

A Symfony2 bundle that integrate this library is available here

Attach Guzzle plugin

Here you can see how to attach Guzzle Log plug to your client and save all your requests to a file.

NB: To run this script you need monolog/monolog

Now in /tmp/bitly_guzzle.log you can see all your requests.


All versions of bitly-api with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ~3.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 hpatoio/bitly-api contains the following files

Loading the files please wait ....