Download the PHP package mainul12501/zego-audio-video-calling without Composer

On this page you can find all versions of the php package mainul12501/zego-audio-video-calling. 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 zego-audio-video-calling

ZegoCloud Audio & Video Calling Package for Laravel

Latest Version Total Downloads License

A complete, production-ready Laravel package for implementing ZegoCloud audio and video calling with mobile app support. Just install, configure credentials, and you're ready to go!

Features

Zero Configuration Setup - Just add your ZegoCloud credentials to .envAudio & Video Calling - Full support for both audio and video calls ✅ Web & Mobile Support - Works seamlessly across web browsers and mobile apps ✅ Real-time Communication - WebSocket broadcasting for call state synchronization ✅ Push Notifications - FCM (Android) and APNs (iOS) support for incoming calls ✅ Call History - Track and manage call records ✅ Laravel 10-12+ Compatible - Supports Laravel 10, 11, 12 and future versions ✅ Auto-Discovery - Service provider auto-registration ✅ Customizable UI - Beautiful, responsive call interface out of the box ✅ Mobile API - RESTful API endpoints for mobile app integration

Table of Contents

Requirements

Installation

Step 1: Install via Composer

Step 2: Publish Package Assets

Or publish individually:

Step 3: Run Migrations

This will create:

Configuration

Step 1: Add ZegoCloud Credentials to .env

Step 2: Get Your ZegoCloud Credentials

  1. Go to ZegoCloud Console
  2. Create a new project or select existing one
  3. Get your App ID and Server Secret from the project settings

That's it! The package is now ready to use.

Usage

Web Integration

Basic Implementation

Add call buttons to your Blade template:

Using Helper Methods

Or use the built-in button creators:

Programmatic Call Initiation

You can also initiate calls programmatically via AJAX:

API Integration

The package provides RESTful API endpoints for both web and mobile applications.

Web API Endpoints

Base URL: /api/call (requires authentication via Sanctum)

Mobile API Endpoints

Base URL: /api/mobile/call (requires authentication via Sanctum)

Example: Initiate Call (API)

Mobile App Integration

For mobile app integration (iOS/Android), see the comprehensive guide:

📱 Mobile Integration Guide

The mobile integration guide includes:

Quick Start for Mobile Developers

  1. Register Device:

  2. Listen for Incoming Calls via:

    • Push notifications (when app is in background)
    • WebSocket events (when app is active)
  3. Accept/Reject Calls:

  4. Join ZegoCloud Room using the provided configuration in the response

Customization

Customizing Routes

Edit config/zego-calling.php:

Customizing the UI

Publish the views:

Then edit the views in resources/views/vendor/zego-calling/.

Customizing the User Model

In config/zego-calling.php:

Call Settings

Broadcasting Setup

The package uses Laravel Broadcasting for real-time call state synchronization. You need to configure broadcasting in your Laravel application.

Step 1: Install Laravel Echo and Pusher

Step 2: Configure Broadcasting

In resources/js/bootstrap.js:

Step 3: Listen for Call Events

Testing

Run the package tests:

Or run specific test suites:

Troubleshooting

Calls Not Connecting

  1. Check ZegoCloud Credentials: Ensure ZEGOCLOUD_APP_ID and ZEGOCLOUD_SERVER_SECRET are correct in .env
  2. Verify Broadcasting Setup: Make sure Laravel Echo is properly configured
  3. Check Firewall: Ensure WebSocket ports are open

Push Notifications Not Working

  1. FCM (Android):

    • Verify FCM_SERVER_KEY in .env
    • Check device token registration
    • Ensure Firebase is properly configured in your mobile app
  2. APNs (iOS):
    • Verify all APN credentials are correct
    • Ensure certificates are not expired
    • Check bundle ID matches

WebSocket Connection Fails

  1. Check .env broadcasting configuration
  2. Verify Pusher credentials
  3. Ensure Laravel Echo is imported and initialized
  4. Check browser console for connection errors

Video/Audio Not Working

  1. Check Browser Permissions: Ensure camera/microphone access is granted
  2. HTTPS Required: ZegoCloud requires HTTPS in production
  3. Check Device Compatibility: Verify browser supports WebRTC

Upgrade Guide

From 1.x to 2.x

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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

Support


Made with ❤️ by Mainul Islam


All versions of zego-audio-video-calling with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/broadcasting Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.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 mainul12501/zego-audio-video-calling contains the following files

Loading the files please wait ...