PHP Library

Attached below examples and tutorial on how to get started with Ever XP PHP library.

Get Started

Main Script

In order to get started, use composer for initial installment 

composer require everxp/php

You can Download Files Here directly and use "Headings.php" file in the "src" folder

$everxp = new \EverxpHeadings\Headings(array("api_key" => "_YOUR_API_KEY_"));

Instructions to get your API Key


Key Type Optional Explaination
api_key Text Required base 64 encode email address:api_key API Key Tutorial
pattern Number Required (only on pattern endpoint) Patterns Ids list
quote Text Required (only on quote endpoint) Quotes Categories list
time Number Required (only on date & time endpoint) Date & Time Ids list
cta Number Required (only on cta endpoint) CTAs Ids list
humanitarian Number Required (only on humanitarian endpoint) Humanitarian Ids list
lang Text Required Languages list
style Number Optional Writing Styles list
voice Number Optional Writing Voices list
pull Number Optional Pull Methods options
freshness Number Optional Freshness levels options
min_l Number Optional Minimum number of characters 
max_l Number Optional Maximum number of characters 
div Text Optional Returns result as text inside div id otherwise returned as json response
user_identifier Text Optional Any kind of parameter to identify your customer (IP, User ID, Email, Username, or First and Last name) Example: [email protected].

Pull more than 1,000,000 patterns combinations, to any place on your site

    $heading = $this->everxp->xp_pattern([
        'pattern' => 11,
        'lang' => 'en',

Pull more than 1,000,000 quotes combinations, to any place on your site

    $heading = $this->everxp->xp_quote([
        'quote' => 'success',
        'lang' => 'en'
Date & Time

Pull more than 1,000,000 date & time combinations, to any place on your site

    $heading = $this->everxp->xp_time([
        'quote' => 1,
        'lang' => 'en'
CTAs (Call to Actions)

Pull more than 1,000,000 Call to Actions combinations, to any place on your site

    $heading = $this->everxp->xp_cta([
        'cta' => 1,
        'lang' => 'en'
Humanitarian (Support Organizations)

Pull more than 1,000,000 Humanitarian combinations, to any place on your site

    $heading = $this->everxp->xp_humanitarian([
        'humanitarian' => 1,
        'lang' => 'en'

Facing an error? Error codes list