PHPackages                             cedwardsmedia/everyonephp - 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. cedwardsmedia/everyonephp

ActiveLibrary[API Development](/categories/api)

cedwardsmedia/everyonephp
=========================

Simple Class for querying EveryoneAPI

v1.0.2(9y ago)0964BSD-3-ClausePHPPHP &gt;=5.3.0

Since Aug 19Pushed 3y ago2 watchersCompare

[ Source](https://github.com/cedwardsmedia/everyonephp)[ Packagist](https://packagist.org/packages/cedwardsmedia/everyonephp)[ RSS](/packages/cedwardsmedia-everyonephp/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

EveryonePHP v1.0.2
==================

[](#everyonephp-v102)

[![Source](https://camo.githubusercontent.com/a18664a986769991292e55044b34cbe2c94169cbf0555854c43f88fc8fd8ce2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d63656477617264736d656469612f65766572796f6e657068702d626c75652e7376673f7374796c653d666c61742d737175617265 "Source")](https://www.github.com/cedwardsmedia/cnam)![Version](https://camo.githubusercontent.com/cda2c28632ce711935820a5cfc2059c55b5cce2bf4b345e6ed787bacc09f3db2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e322d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/6a8cc6be6ab6046cf3befacf6ac2e738f22e70d285672c1a5f4da9a9caa837bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63656477617264736d656469612f65766572796f6e657068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cedwardsmedia/everyonephp)[![License](https://camo.githubusercontent.com/62f27e3c83f0f70e7a445f76a867b8b940a55cfa9aa97b77c487df5004855b19/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d6c69676874677265792e7376673f7374796c653d666c61742d737175617265 "License")](./LICENSE.md)[![Gratipay](https://camo.githubusercontent.com/79b93dc5edbfbb47bda9dda8d9784eebdbcaf8a9655ffe181d15ddd6a975b7be/68747470733a2f2f696d672e736869656c64732e696f2f67726174697061792f63656477617264736d656469612e7376673f7374796c653d666c61742d737175617265 "License")](https://gratipay.com/~cedwardsmedia/)[![Say Thanks!](https://camo.githubusercontent.com/ee843c523d57170345478ba1c560741cf66c2e266144266ccd1ab0c51b7f87a5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5361792532305468616e6b732d212d3145414544422e737667)](https://saythanks.io/to/cedwardsmedia)

STOP
----

[](#stop)

Due to the purchase of EveryoneAPI by Neustar and their refusal to offer any type of hobbyist access to their service, this project is officially discontinued.

Introduction
------------

[](#introduction)

*EveryonePHP* is a PHP library for querying EveryoneAPI. The original code was developed as part of [*CNAM-CLI*](https://github.com/cedwardsmedia/cnam-cli) and [*webCNAM*](https://github.com/cedwardsmedia/webcnam) before being forked into a stand-alone library. If you need a Python module for EveryoneAPI, consider trying [EveryoneAPI.py](https://github.com/cedwardsmedia/everyoneapi.py).

In order to use *EveryonePHP*, you must have an [EveryoneAPI account](https://www.everyoneapi.com/sign-up) with [available funds](https://www.everyoneapi.com/pricing).

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

[](#installation)

I highly recommend using *Composer* to install *EveryonePHP* for your project. *Composer* will allow you to automatically install the *GuzzleHttp* library, which *EveryonePHP* depends on.

1. Install [Composer](https://getcomposer.org/download/)
2. `cd` to your project's directory
3. Run `composer require cedwardsmedia/everyonephp`
4. Build your amazing project!

Usage
-----

[](#usage)

I have never been a great programmer. As such, I strived to make EveryonePHP as simple to use as possible and I'm always looking to simplify it even more. Let's build a basic EveryoneAPI client using EveryonePHP:

### Step 1: Instantiate EveryonePHP as an Object

[](#step-1-instantiate-everyonephp-as-an-object)

```
// Instantiate EveryonePHP
$api = new EveryonePHP();
```

Creating a new EveryonePHP object allows us to interact with the class.

### Step 2: Set EveryoneAPI Credentials

[](#step-2-set-everyoneapi-credentials)

```
// Set EveryoneAPI Credentials
$api->sid = "9e3cef42da225d42bd86feaa80ff47";
$api->token = "65f3ef01462c62f7f4ce7d2156ceee";
```

EveryonePHP needs these credentials in order to query EveryoneAPI. Otherwise, the query will fail. How you obtain and store these credentials is completely up to you, just be sure to set them for each instance of EveryonePHP before calling `query()`.

### Step 3: Set EveryoneAPI Data Points

[](#step-3-set-everyoneapi-data-points)

```
// Set EveryoneAPI Data Points
$data = array("name", "profile", "cnam", "gender", "image", "address", "location", "line_provider", "carrier", "carrier_o", "linetype");
```

Each data point is optional and all data points are returned by default, unless otherwise specified. In the same way EveryoneAPI uses a comma separated list of identifiers, EveryonePHP uses a simple array to specify the data points you wish to retrieve. EveryonePHP passes these identifiers directly to EveryoneAPI so you will use the same identifiers here as you would in a cURL request.

For a full list of available Data Points, check the [EveryoneAPI Docs](https://www.everyoneapi.com/docs#data-points).

### Step 4: Perform EveryoneAPI Query

[](#step-4-perform-everyoneapi-query)

```
// Perform EveryoneAPI query
$api->query($phone, $data);
```

Only `$phone` is required for this function. The function performs the query against EveryoneAPI and stores the results in a stdClass object, in this example, `$api->results`.

### Step 5: Print the Results

[](#step-5-print-the-results)

```
// Print results

// Print first name
echo $api->results->data->expanded_name->first;

// Print last name
echo $api->results->data->expanded_name->last;

// Print carrier name
echo $api->results->data->carrier->name;
```

EveryonePHP converts the JSON response from EveryoneAPI into a stdClass object. This allows us to access the entire response for our application. In the above example, we print the first name, last name, and carrier for the given phone number.

### Optional: Error Checking

[](#optional-error-checking)

```
// Check for Error
if ($api->error) {               // If there's an error
   echo "Error: $api->error";    // Print it out
   exit(1);                      // Exit with status 1
}
```

EveryonePHP will assign error messages, if one occurs, to `$api->error`. You can use this in an `if` statement, as shown above, to halt your application if something has gone wrong.

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

[](#contributing)

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request ^^,

Credits
-------

[](#credits)

Concept and original codebase: Corey Edwards ([@cedwardsmedia](https://www.twitter.com/cedwardsmedia))

Optimization and Debugging: Brian Seymour ([@eBrian](http://bri.io))

License
-------

[](#license)

*EveryonePHP* is licensed under the **BSD Simplified License**. See LICENSE for more.

---

**Disclaimer**: *EveryonePHP* is not endorsed by, sponsored by, or otherwise associated with [OpenCNAM](http://www.opencnam.com), [EveryoneAPI](http://www.everyoneapi.com), or [Telo USA, Inc](http://www.telo.com).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3321d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1514767?v=4)[Corey Edwards](/maintainers/cedwardsmedia)[@cedwardsmedia](https://github.com/cedwardsmedia)

---

Top Contributors

[![cedwardsmedia](https://avatars.githubusercontent.com/u/1514767?v=4)](https://github.com/cedwardsmedia "cedwardsmedia (34 commits)")

---

Tags

apiapi-wrapperbusiness-intelligencecnameveryoneapieveryoneapi-queryphone-numberphpphone-numbercnamphone lookupEveryoneAPI

### Embed Badge

![Health badge](/badges/cedwardsmedia-everyonephp/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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