2017 © Pedro Peláez
 

library phextopia

Nextopia php library

image

geiger-it/phextopia

Nextopia php library

  • Monday, May 21, 2018
  • by esmith.geiger
  • Repository
  • 3 Watchers
  • 1 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 43 % Grown

The README.md

Phextopia

A Nextopia PHP Client Library to consume their json api., (*1)

Install

composer require geiger-it/phextopia, (*2)

Simple Mode:
$client = new \Phextopia\Client( $clientId = '74PuWjnHUbN7pfh9XtPzVVknfmFxPcYk' );
$search = new \Phextopia\Search($client);

$result = $search->find(); // automatically retrieves $_GET['keywords'] = 'shirt'

Hard Mode:
$client = new \Phextopia\Client( $clientId = '74PuWjnHUbN7pfh9XtPzVVknfmFxPcYk', $useGET = false);
$search = new \Phextopia\Search($client);

$result = $search->find('shirt');

// or with all the options:

$result = $search->find('shirt', [
    'xml' => 1,
    'page' => 3,
    // (optional) overrides $_SERVER['REMOTE_ADDR']
    'ip' => $request->getClientIp(), 
    // (optional) user_agent overrides $_SERVER['HTTP_USER_AGENT']
    'user_agent' => $request->getUserAgent(), 
    'res_per_page' => '12',
    'force_or_search' => '1:10',
    'requested_fields' => 'Name,Price,Sku,Image',
    'trim_length' => '80',
    'abstracted_fields' => 'Name,Description',
    'initial_sort' => 'Platform:ASC',
    'initial_sort_order' => 'Linux,Windows,Mac',
    'no_metaphones' => '4:10',
    //...
]);

Page Builder Usage:
    $client = new \Phextopia\Client( $clientId = '74PuWjnHUbN7pfh9XtPzVVknfmFxPcYk' );
    $page = new Phextopia\PageBuilder($client);

    $result = $page->load('My Test Page');

The Versions

21/05 2018

dev-master

9999999-dev

Nextopia php library

  Sources   Download

MIT

The Requires

 

The Development Requires

library nextopia

21/05 2018

0.1.1

0.1.1.0

Nextopia php library

  Sources   Download

MIT

The Requires

 

The Development Requires

library nextopia

27/04 2018

0.1.0

0.1.0.0

Nextopia php library

  Sources   Download

MIT

The Requires

 

The Development Requires

library nextopia

26/04 2018

dev-design

dev-design

Nextopia php library

  Sources   Download

MIT

The Requires

 

The Development Requires

library nextopia