Download the PHP package cedwardsmedia/everyonephp without Composer

On this page you can find all versions of the php package cedwardsmedia/everyonephp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package everyonephp

EveryonePHP v1.0.2

Source [Version]() Total Downloads Gratipay Say Thanks!

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

EveryonePHP is a PHP library for querying EveryoneAPI. The original code was developed as part of CNAM-CLI and webCNAM before being forked into a stand-alone library. If you need a Python module for EveryoneAPI, consider trying EveryoneAPI.py.

In order to use EveryonePHP, you must have an EveryoneAPI account with available funds.

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
  2. cd to your project's directory
  3. Run composer require cedwardsmedia/everyonephp
  4. Build your amazing project!

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

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

Step 2: Set EveryoneAPI Credentials

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

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.

Step 4: Perform EveryoneAPI Query

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

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

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

  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

Concept and original codebase: Corey Edwards (@cedwardsmedia)

Optimization and Debugging: Brian Seymour (@eBrian)

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, EveryoneAPI, or Telo USA, Inc.


All versions of everyonephp with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
guzzlehttp/guzzle Version ~6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cedwardsmedia/everyonephp contains the following files

Loading the files please wait ....