Download the PHP package tipoff/laravel-agora-api without Composer

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

Laravel Agora Videoconferencing

Latest Version on Packagist Tests Total Downloads

This package provides an easy-to-use wrapper for placing video calls via the Agora API in the Laravel framework. The server-side implementation can be used with any Javascript framework (or none at all!), but this package also contains a set of ready-to-use Vue components that can be used for the client-side implementation.

Installation

Install the package via composer:

You may publish all of the packages resources (including the frontend assets) with the following command:

You may publish just the config file with the following command:

Obtain an app ID and certificate from Agora at: https://www.agora.io/en/.

Add the following variables to your .env file. (Additional config variables are specified in the agora config file, but these are the minimum required to use the package.)

If necessary, publish the configuration file and customize the fields used to generate a user's display name by changing the user_display_name.fields and user_display_name.separator fields.

Server-side Usage

Retrieving an Agora token:

Placing a call (dispatches an event to start the call):

Installing Optional Frontend Vue Resources

This package comes with a set of Vue components that you may use alongside the server-side functionality. You do not have to use these components to use the server-side calls. However, if you wish to use them, follow these steps to install and configure them in your application:

Publish the Javascript Assets:

You may publish the assets with the following command:

Install JS Dependencies via NPM

Import and Initialize Vue and Vuex

Inside your resources/js/app.js file, add the code from the following sections:

Register the Vue Components

Register the Vuex Module

This package uses a Vuex module to store and mutate state related to its functionality. This gives you access to the state in any other components you may register if necessary (for instance, to open a modal when a call is incoming).

Add the Vuex store to the Vue instance like so:

Finishing Up Asset Registration

When you are finished adjusting your app.js file, it should look similar to this:

Set Up Broadcasting and Laravel Echo

Set up broadcasting for your application as detailed in the Laravel documentation at: https://laravel.com/docs/broadcasting.

Note: Don't forget to uncomment App\Providers\BroadcastServiceProvider::class in your app.php configuration file.

Transpile and Place Assets

Run npm run dev to transpile the assets. You may now use the Vue components within your app like so:

Updating Package Resources

After updating to a newer package version, use php artisan vendor:publish --tag=agora-js --force to make sure that updates to package resources are republished to your application's resources directory.

Styling Components

The Vue components available with this package have a variety of CSS classes attached to their HTML elements. This allows you to "hook" into the components and style them without having to modify them directly. You may view the various CSS classes available on the individual Vue components.

A starter file written in TailwindCSS can be published by running php artisan vendor:publish --tag=agora-css. After it is published, include it in your resources/css/app.css file (@import 'vendor/agora-component-styles.css';) and Laravel Mix will transpile it into your application for you (if using the default Mix setup).

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-agora-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
tipoff/authorization Version ^2.8.5
tipoff/support Version ^2.1.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 tipoff/laravel-agora-api contains the following files

Loading the files please wait ....