PHPackages                             hoseinrafiei/easy-yelp - 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. hoseinrafiei/easy-yelp

ActiveLibrary[API Development](/categories/api)

hoseinrafiei/easy-yelp
======================

A light-weight PHP Client for Yelp Fusion API

1.0.1(7y ago)35.0k↓67.9%MITPHPPHP &gt;=7.0.0

Since Jan 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hoseinrafiei/easy-yelp)[ Packagist](https://packagist.org/packages/hoseinrafiei/easy-yelp)[ RSS](/packages/hoseinrafiei-easy-yelp/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Easy Yelp API Integration
=========================

[](#easy-yelp-api-integration)

**Easy Yelp** is a single file PHP client for [Yelp API](https://www.yelp.com/developers/documentation/v3/get_started).

### Installation

[](#installation)

You can simply install it using composer.

```
composer require hoseinrafiei/easy-yelp

```

If you're not using composer, you can simply download the file and include it in your project manually.

```
require 'yelp.php';
```

### Usage

[](#usage)

Create an instance and send your API token to the constructor method. Then simply call the methods with proper request and fetch the data from Yelp API **Easily**.

```
$yelp = new EasyYelp\Yelp('YOUR_API_TOKEN');
$businesses = $yelp->businessSearch([
    'location' => 'Los Angeles, CA',
    'price' => '1,2,3',
    'sort_by' => 'distance',
    'limit' => '30',
])->getArray();
```

### Methods

[](#methods)

#### [Business Search](https://www.yelp.com/developers/documentation/v3/business_search)

[](#business-search)

```
$request = [];
$yelp->businessSearch($request)->getArray();
```

#### [Phone Search](https://www.yelp.com/developers/documentation/v3/business_search_phone)

[](#phone-search)

```
$request = [];
$yelp->businessPhoneSearch($request)->getArray();
```

#### [Transaction Search](https://www.yelp.com/developers/documentation/v3/transaction_search)

[](#transaction-search)

```
$request = [];
$yelp->transactionSearch('delivery', $request)->getArray();
```

#### [Business Details](https://www.yelp.com/developers/documentation/v3/business)

[](#business-details)

```
$businessId = 'blahblah';
$request = [];
$yelp->businessDetails($businessId, $request)->getArray();
```

#### [Business Match](https://www.yelp.com/developers/documentation/v3/business_match)

[](#business-match)

```
$request = [];
$yelp->businessMatch($request)->getArray();
```

#### [Business Reviews](https://www.yelp.com/developers/documentation/v3/business_reviews)

[](#business-reviews)

```
$businessId = 'blahblah';
$request = [];
$yelp->businessReviews($businessId, $request)->getArray();
```

#### [Autocomplete](https://www.yelp.com/developers/documentation/v3/autocomplete)

[](#autocomplete)

```
$request = [];
$yelp->autocomplete($request)->getArray();
```

#### [Event Lookup](https://www.yelp.com/developers/documentation/v3/event)

[](#event-lookup)

```
$eventId = 'blahblah';
$request = [];
$yelp->eventDetails($eventId, $request)->getArray();
```

#### [Event Search](https://www.yelp.com/developers/documentation/v3/event_search)

[](#event-search)

```
$request = [];
$yelp->events($request)->getArray();
```

#### [Featured Event](https://www.yelp.com/developers/documentation/v3/featured_event)

[](#featured-event)

```
$request = [];
$yelp->featuredEvent($request)->getArray();
```

#### [All Categories](https://www.yelp.com/developers/documentation/v3/all_categories)

[](#all-categories)

```
$request = [];
$yelp->categories($request)->getArray();
```

#### [Category Details](https://www.yelp.com/developers/documentation/v3/category)

[](#category-details)

```
$alias = 'blahblah';
$request = [];
$yelp->categoryDetails($alias, $request)->getArray();
```

### Examples

[](#examples)

You can check examples directory files to see some examples for using API methods.

### Errors

[](#errors)

To check if you received an error from Yelp API or not you can use following functions.

```
$businesses = $yelp->businessSearch($request)->getArray();
if($yelp->hasError()) // We have an error
{
    echo $yelp->getError(); // Print the error message
}
```

### License

[](#license)

This software released under **MIT License**.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

2737d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29144542?v=4)[Hossein Rafiei](/maintainers/hoseinrafiei)[@hoseinrafiei](https://github.com/hoseinrafiei)

---

Top Contributors

[![hoseinrafiei](https://avatars.githubusercontent.com/u/29144542?v=4)](https://github.com/hoseinrafiei "hoseinrafiei (8 commits)")

---

Tags

api-clientphpyelpyelp-apiyelp-fusion-apiyelp-reviews

### Embed Badge

![Health badge](/badges/hoseinrafiei-easy-yelp/health.svg)

```
[![Health](https://phpackages.com/badges/hoseinrafiei-easy-yelp/health.svg)](https://phpackages.com/packages/hoseinrafiei-easy-yelp)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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