PHPackages                             theafolayan/100ms-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. theafolayan/100ms-laravel

ActiveLibrary[API Development](/categories/api)

theafolayan/100ms-laravel
=========================

A Laravel SDK for 100ms API.

1.1.1(2mo ago)21.7k↓11.1%MITPHPPHP ^8.0

Since Jan 8Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/theafolayan/100ms-laravel)[ Packagist](https://packagist.org/packages/theafolayan/100ms-laravel)[ RSS](/packages/theafolayan-100ms-laravel/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (10)Versions (6)Used By (0)

100ms Laravel SDK
=================

[](#100ms-laravel-sdk)

The 100ms Laravel SDK provides an easy way to integrate the 100ms API with your Laravel application. It includes features for room management, generating room codes, and managing 100ms resources through secure management tokens.

Features
--------

[](#features)

- Generate and manage rooms.
- Generate room codes for prebuilt apps.
- Secure authentication with management tokens.
- Easy integration with Laravel through service providers and facades.

Installation
------------

[](#installation)

### 1. Install the Package

[](#1-install-the-package)

Add the package to your Laravel project using Composer:

```
composer require theafolayan/100ms-laravel
```

### 2. Publish Configuration

[](#2-publish-configuration)

Publish the configuration file to set your 100ms API credentials:

```
php artisan vendor:publish --provider="TheAfolayan\HmsLaravel\HmsServiceProvider"
```

This will create a `config/100ms.php` file.

Configuration
-------------

[](#configuration)

Add your 100ms API credentials to your `.env` file:

```
HMS_API_KEY=your_api_key
HMS_API_SECRET=your_api_secret
HMS_BASE_URL=https://api.100ms.live/v2
```

Usage
-----

[](#usage)

### 1. Creating a Room

[](#1-creating-a-room)

Use the Hms facade to create a new room:

```
use TheAfolayan\HmsLaravel\Facades\Hms;

$response = Hms::createRoom([
    'name' => 'My Room',
    'template' => 'group_call',
]);

echo $response['id'];
```

### 2. Generating a Room Code

[](#2-generating-a-room-code)

Generate a room code for a specific room:

```
$roomId = 'room-id';
$response = Hms::generateRoomCode($roomId, [
    'role' => 'guest',
    'expiry' => time() + (60 * 30) // 30 minutes
]);

echo $response['code'];
```

### 3. Fetch Room Code Details

[](#3-fetch-room-code-details)

Retrieve details of a specific room code:

```
$code = 'room-code';
$details = Hms::getRoomCodeDetails($code);

print_r($details);
```

### 4. List All Room Codes

[](#4-list-all-room-codes)

List all room codes with optional parameters:

```
$codes = Hms::listRoomCodes(['limit' => 10]);

print_r($codes);
```

### 5. Delete a Room Code

[](#5-delete-a-room-code)

Delete a specific room code:

```
$code = 'room-code-to-delete';
$response = Hms::deleteRoomCode($code);

echo $response['message'];
```

### 6. Enable or Disable a Room

[](#6-enable-or-disable-a-room)

Toggle a room's availability using the provided helper methods:

```
$roomId = 'room-id';

// Disable the room
Hms::disableRoom($roomId);

// Enable the room
Hms::enableRoom($roomId);
```

Testing
-------

[](#testing)

To test your package locally:

1. Set up a Laravel project and add your package as a local repository.
2. Use routes or controllers to test the package functionality.
3. Run unit tests for the package:

```
./vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Contributions are welcome! Please follow these steps:

1. Fork the repository.
2. Create a feature branch: `git checkout -b feature-name`.
3. Commit your changes: `git commit -m "Add new feature"`.
4. Push to the branch: `git push origin feature-name`.
5. Open a pull request.

License
-------

[](#license)

This package is licensed under the [MIT License](https://opensource.org/license/mit).

Support
-------

[](#support)

If you encounter any issues or have feature requests, please open an issue in the GitHub repository.

Credits
-------

[](#credits)

Show love by following me on social media:

- Instagram: [@theafolayan](https://instagram.com/theafolayan)
- Twitter: [@theafolayan](https://twitter.com/theafolayan)
- LinkedIn: [@theafolayan](https://linkedin.com/in/theafolayan)
- GitHub: [@theafolayan](https://github.com/theafolayan)

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance84

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~229 days

Total

3

Last Release

83d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44205918?v=4)[Oluwaseun Raphael Afolayan](/maintainers/theafolayan)[@theafolayan](https://github.com/theafolayan)

---

Top Contributors

[![theafolayan](https://avatars.githubusercontent.com/u/44205918?v=4)](https://github.com/theafolayan "theafolayan (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/theafolayan-100ms-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/theafolayan-100ms-laravel/health.svg)](https://phpackages.com/packages/theafolayan-100ms-laravel)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M886](/packages/laravel-socialite)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[firefly-iii/data-importer

Firefly III Data Import Tool.

8035.8k](/packages/firefly-iii-data-importer)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
