Download the PHP package vonage/vonage-laravel without Composer

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

The Laravel logo

Vonage Package for Laravel

Latest Stable Version Total Downloads License PHP Version Require

Introduction

This is a Laravel Service Provider for integrating the Vonage PHP Client Library.

Requirements

This Package is for use with Laravel versions 9.x and upwards due to PHP Version restrictions. You will need to be running PHP8.0 and upwards - for older compatibility you will need to look at previous versions.

Installation

Using Composer, run the terminal command:

Dealing with Guzzle Client issues

By default, this package uses vonage/client, which includes a Guzzle adapter for accessing the API. Some other libraries supply their own Guzzle adapter, leading to composer not being able to resolve a list of dependencies. You may get an error when adding vonage/vonage-laravel to your application because of this.

The Vonage client allows you to override the HTTP adapter that is being used. This takes a bit more configuration, but this package allows you to use vonage/client-core to supply your own HTTP adapter.

To do this:

Run composer require vonage/client-core to install the Core SDK with Composer.

Install your own httplug-compatible adapter. For example, to use Symfony's HTTP Client:

composer require vonage/vonage-laravel to install this package

In your .env file, add the following configuration:

You can now pull the Vonage\Client object from the Laravel Service Container, or use the Facade provided by this package.

Configuration

You can use artisan vendor:publish to copy the distribution configuration file to your app's config directory:

Then update config/vonage.php with your credentials. Alternatively, you can update your .env file with the following:

Optionally, you could also set an application_id and private_key if required:

Private keys can either be a path to a file, like above, or the string of the key itself:

Usage

To use the Vonage Client Library you can use the Facade, or request the instance from the service container:

Or

If you're using private key authentication, you can make a voice call:

For more information on using the Vonage Client library, see the official client library repository.


All versions of vonage-laravel with dependencies

PHP Build Version
Package Version
Requires vonage/client Version ^4.0
php Version ^8.0|^8.1|^8.2
illuminate/support Version ^9.0|^10.0|^11.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 vonage/vonage-laravel contains the following files

Loading the files please wait ....