PHPackages                             sudipta/vrio - 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. sudipta/vrio

ActiveLibrary[API Development](/categories/api)

sudipta/vrio
============

Laravel package for Vrio CRM integration

1.0.6(6mo ago)02MITPHPPHP ^8.1

Since Oct 24Pushed 6mo agoCompare

[ Source](https://github.com/sudipt0/vrio)[ Packagist](https://packagist.org/packages/sudipta/vrio)[ RSS](/packages/sudipta-vrio/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

🧩 Vrio Laravel Package
======================

[](#-vrio-laravel-package)

A Laravel package to seamlessly interact with the [**Vrio CRM API**](https://vrio.app), allowing you to manage **customers**, **orders**, **payment cards**, and more — directly from your Laravel application.

Supports **Laravel 10, 11, and 12**.

---

🚀 Features
----------

[](#-features)

- ✅ Create and retrieve **customers**
- 💳 Add and list **payment cards**
- 🧾 Create and retrieve **orders**
- 📦 Manage **products** and **inventory**
- 🔄 Handle **subscriptions** and **recurring billing**
- ⚙️ Graceful error handling with structured responses
- 🧱 Provides **Facade** and **dependency injection** support
- 🔐 Automatically injects API credentials from configuration
- 🧰 Easy configuration publishing and environment setup
- 🧪 Comprehensive test suite with API mocking

---

📦 Installation Guide
--------------------

[](#-installation-guide)

### 1. Add the Package to Your Project

[](#1-add-the-package-to-your-project)

If you are developing locally and have the package inside `packages/sudipta/vrio`, add this to your root `composer.json` file:

```
{
    "repositories": [
        {
            "type": "path",
            "url": "./packages/sudipta/vrio"
        }
    ]
}
```

Then require the package:

```
composer require "sudipta/vrio:dev-main"
```

💡 **If the package is published on Packagist**, you can simply run:

```
composer require sudipta/vrio
```

### 2. Publish the Configuration File

[](#2-publish-the-configuration-file)

After installation, publish the package configuration file using the Artisan command:

```
php artisan vendor:publish --tag=vrio-config
```

This will create a configuration file at:

```
config/vrio.php

```

### 3. Configure Environment Variables

[](#3-configure-environment-variables)

Add your Vrio CRM API credentials to your `.env` file:

```
VRIO_BASE_URL=https://api.vrio.app
VRIO_API_KEY=your_api_key_here
VRIO_API_SECRET=your_api_secret_here
```

🧠 You can find your API credentials inside your Vrio CRM dashboard.

### 4. Verify Configuration

[](#4-verify-configuration)

Check the generated `config/vrio.php` file to ensure proper setup:

```
return [
    'base_url' => env('VRIO_BASE_URL', 'https://api.vrio.app'),
    'api_key' => env('VRIO_API_KEY'),
    'api_secret' => env('VRIO_API_SECRET'),

    // Optional: Default timeout for API requests (seconds)
    'timeout' => env('VRIO_TIMEOUT', 30),

    // Optional: Enable/disable debug mode
    'debug' => env('VRIO_DEBUG', false),
];
```

---

🧠 Usage Examples
----------------

[](#-usage-examples)

### Using the Facade

[](#using-the-facade)

```
