Download the PHP package shivella/laravel-bitly without Composer

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

Laravel Bitly Package

A laravel package for generating Bitly short URLs.

For more information see Bitly

Build Status Latest Stable Version License Total Downloads

Requirements

Laravel 5.1 or later

Installation

Installation is a quick 3 step process:

  1. Download laravel-bitly using composer
  2. Enable the package in app.php
  3. Configure your Bitly credentials
  4. (Optional) Configure the package facade

Step 1: Download laravel-bitly using composer

Add shivella/laravel-bitly by running the command:

Step 2: Enable the package in app.php

Register the Service in: config/app.php

`

Step 3: Configure Bitly credentials

Add this in you .env file

Step 4 (Optional): Configure the package facade

Register the Bitly Facade in: config/app.php

`

Usage

`

Or if you want to use facade, add this in your class after namespace declaration:

Then you can use it directly by calling Bitly:: like:

`

Testing

In your unit tests you may use BitlyClientFake class instead of regular client. It will create a fake short URLs using hashing without calling an external REST API, which will speed up your unit tests. Fake might be setup via DI at your \Tests\TestCase::createApplication() implementation:

As an alternative you may use \Shivella\Bitly\Facade\Bitly::fake() method to swap regular client by a fake.


All versions of laravel-bitly with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
ext-json Version *
illuminate/support Version ^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0
guzzlehttp/guzzle Version ~6.0 || ^7.0.1 || ^7.1 || ^7.2 || ^7.3 || ^7.4 || ^7.5
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 shivella/laravel-bitly contains the following files

Loading the files please wait ....