PHPackages                             ghanem/gfycat - 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. ghanem/gfycat

ActiveLibrary[API Development](/categories/api)

ghanem/gfycat
=============

A Laravel package that provides a clean interface to the Tokeet Property Management API.

v1.3(4y ago)1461MITPHPPHP ^7.3|^8.0

Since Jul 26Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/AbdullahGhanem/laravel-gfycat)[ Packagist](https://packagist.org/packages/ghanem/gfycat)[ Docs](https://github.com/abdullahghanem/gfycat)[ RSS](/packages/ghanem-gfycat/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Laravel Tokeet
==============

[](#laravel-tokeet)

[![Latest Stable Version](https://camo.githubusercontent.com/d776934cb47a2dbfc403616cb34a17bdf13086b62bcf7c836b22a0bfbf5976a5/68747470733a2f2f706f7365722e707567782e6f72672f6577612f746f6b6565742f762f737461626c652e737667)](https://packagist.org/packages/ewa/tokeet) [![License](https://camo.githubusercontent.com/0acbce23e358efc0ea54762539abff92152fd2c6029b761d001bcb106645863b/68747470733a2f2f706f7365722e707567782e6f72672f6577612f746f6b6565742f6c6963656e73652e737667)](https://packagist.org/packages/ewa/tokeet) [![Total Downloads](https://camo.githubusercontent.com/324a84711efa5a69c2f7e1c4a57c62806b6567a3ba64dab3e595748039f349cd/68747470733a2f2f706f7365722e707567782e6f72672f6577612f746f6b6565742f646f776e6c6f6164732e737667)](https://packagist.org/packages/ewa/tokeet)

A Laravel package that provides a clean interface to the [Tokeet Property Management API](https://www.tokeet.com/). Manage rentals, inquiries, guests, channels, rates, events, invoices, and messages directly from your Laravel application.

Requirements
------------

[](#requirements)

- PHP 8.0+
- Laravel 9.x, 10.x, 11.x, or 12.x

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

[](#installation)

Install via Composer:

```
composer require ewa/tokeet
```

The package uses Laravel's auto-discovery, so the service provider and facade are registered automatically.

### Publish Configuration

[](#publish-configuration)

```
php artisan tokeet:install
```

Or manually:

```
php artisan vendor:publish --provider="Ewa\Tokeet\TokeetServiceProvider" --tag="config"
```

### Environment Variables

[](#environment-variables)

Add the following to your `.env` file:

```
TOKEET_API_KEY=your-api-key
TOKEET_ACCOUNT_ID=your-account-id
```

You can find your API key in your Tokeet account under **Settings &gt; API**.

Usage
-----

[](#usage)

Use the `Tokeet` facade to interact with the API:

```
use Ewa\Tokeet\Facades\Tokeet;
```

### Rentals

[](#rentals)

```
// Get all rentals
$rentals = Tokeet::getRentals();

// Get a single rental
$rental = Tokeet::getRental('rental-id');

// Create a rental
$rental = Tokeet::createRental([
    'name' => 'Beach House',
    'address' => '123 Ocean Drive',
    'bedrooms' => 3,
    'bathrooms' => 2,
]);

// Update a rental
Tokeet::updateRental('rental-id', [
    'name' => 'Updated Beach House',
]);

// Delete a rental
Tokeet::deleteRental('rental-id');
```

### Inquiries (Bookings)

[](#inquiries-bookings)

```
// Get all inquiries
$inquiries = Tokeet::getInquiries();

// Get a single inquiry
$inquiry = Tokeet::getInquiry('inquiry-id');

// Create an inquiry
$inquiry = Tokeet::createInquiry([
    'guest_name' => 'John Doe',
    'check_in' => '2026-04-01',
    'check_out' => '2026-04-07',
    'rental_id' => 'rental-id',
]);

// Update an inquiry
Tokeet::updateInquiry('inquiry-id', [
    'status' => 'confirmed',
]);

// Delete an inquiry
Tokeet::deleteInquiry('inquiry-id');
```

### Guests

[](#guests)

```
// Get all guests
$guests = Tokeet::getGuests();

// Get a single guest
$guest = Tokeet::getGuest('guest-id');

// Create a guest
$guest = Tokeet::createGuest([
    'name' => 'Jane Doe',
    'email' => 'jane@example.com',
    'phone' => '+1234567890',
]);

// Update a guest
Tokeet::updateGuest('guest-id', [
    'phone' => '+0987654321',
]);
```

### Channels

[](#channels)

```
// Get all channels
$channels = Tokeet::getChannels();
```

### Rates

[](#rates)

```
// Get rates for a rental
$rates = Tokeet::getRates('rental-id');

// Create a rate
Tokeet::createRate([
    'rental_id' => 'rental-id',
    'name' => 'Summer Rate',
    'amount' => 150,
    'start_date' => '2026-06-01',
    'end_date' => '2026-08-31',
]);

// Delete a rate
Tokeet::deleteRate('rate-id');
```

### Events (Calendar)

[](#events-calendar)

```
// Get all events
$events = Tokeet::getEvents();

// Create an event
Tokeet::createEvent([
    'rental_id' => 'rental-id',
    'title' => 'Maintenance',
    'start_date' => '2026-04-15',
    'end_date' => '2026-04-16',
]);

// Delete an event
Tokeet::deleteEvent('event-id');
```

### Invoices

[](#invoices)

```
// Get all invoices
$invoices = Tokeet::getInvoices();

// Get a single invoice
$invoice = Tokeet::getInvoice('invoice-id');

// Create an invoice
Tokeet::createInvoice([
    'inquiry_id' => 'inquiry-id',
    'amount' => 1050,
]);
```

### Messages

[](#messages)

```
// Get all messages
$messages = Tokeet::getMessages();

// Send a message
Tokeet::sendMessage([
    'inquiry_id' => 'inquiry-id',
    'body' => 'Welcome to our property!',
]);
```

### Error Handling

[](#error-handling)

Failed API requests return an array with the status code and error details:

```
$result = Tokeet::getRentals();

if (is_array($result) && isset($result['status_code'])) {
    // Handle error
    echo "Error {$result['status_code']}: " . json_encode($result['error']);
}
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance57

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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 ~5 days

Total

4

Last Release

1739d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fafeedb68c6ad2ddbb249caed67289c8c74073d25fcfb210534a9769d393dda4?d=identicon)[ghanem](/maintainers/ghanem)

---

Top Contributors

[![AbdullahGhanem](https://avatars.githubusercontent.com/u/5055892?v=4)](https://github.com/AbdullahGhanem "AbdullahGhanem (6 commits)")

---

Tags

apigfycatgfycat-apigifslaravelphpphpapilaravelgifgfycat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ghanem-gfycat/health.svg)

```
[![Health](https://phpackages.com/badges/ghanem-gfycat/health.svg)](https://phpackages.com/packages/ghanem-gfycat)
```

###  Alternatives

[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[jeroen-g/flickr

Modern PHP package to make Flickr API calls. Ships with Laravel implementation.

2559.9k2](/packages/jeroen-g-flickr)[exlo89/laravel-sevdesk-api

A helpful Sevdesk API client for Laravel.

1116.5k](/packages/exlo89-laravel-sevdesk-api)[dystcz/lunar-api

Dystore API layer for Lunar e-commerce package

411.1k3](/packages/dystcz-lunar-api)[yxx/laravel-quick

agile development

145.3k](/packages/yxx-laravel-quick)[gufy/whmcs

WHMCS API for Laravel 5

201.7k](/packages/gufy-whmcs)

PHPackages © 2026

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