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(4mo ago)21.9k—6.3%MITPHPPHP ^8.0

Since Jan 8Pushed 4mo 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 2w 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

41

—

FairBetter than 87% of packages

Maintenance76

Regular maintenance activity

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

128d 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.7k113.1M998](/packages/laravel-socialite)[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[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.

5226.7k](/packages/simplestats-io-laravel-client)[exinone/mixin-sdk-php

Mixin-Network SDK for PHP, modify from ExinOne/laravel-mixin-sdk

242.5k4](/packages/exinone-mixin-sdk-php)[mynaparrot/plugnmeet-sdk

plugNmeet PHP SDK

113.1k](/packages/mynaparrot-plugnmeet-sdk)

PHPackages © 2026

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