These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

ESI easy way plain PHP Example no Composer or install files!

Author
BOMBASTA
PSYCHOPATHIA
Caldari Peace and Order
#1 - 2017-06-29 15:41:35 UTC  |  Edited by: BOMBASTA
Hey there

I read alot of Forum post and checked several scripts on Github
What I have noticed is there is no single example where you are not in the need of Composer for install

Can somebody maybe just post two quick example scripts On How we are able to fetch the data to php variables?

Please only Plain script no Composer or Installation files. I really liked the old way of Api xml request but dont warnt to put anymore effort in it . Also i am dissmissing already crest scripts.


Thx alot in advance
Tonto Auri
Vhero' Multipurpose Corp
#2 - 2017-06-29 17:47:29 UTC
Quick and easy example:
1. Login to your testing server.
2. Go to https://getcomposer.org/download/
3. Follow the "Command-line installation" instructions.
4. Run 'composer require vendor/package'.
5. Create a file "test.php" with
‹?php
require_once __DIR__ . '/vendor/autoload.php';

6. Start writing your code below it.

Two most common elements in the universe are hydrogen and stupidity. -- Harlan Ellison

Bloemkoolsaus
Deep Core Mining Inc.
Caldari State
#3 - 2017-06-30 09:58:48 UTC
BOMBASTA wrote:

Can somebody maybe just post two quick example scripts On How we are able to fetch the data to php variables?


ESI is all http requests, you can use curl get and post data. Google "php rest curl".
All data you get is in JSON format. Use the php function http://php.net/json_decode and http://php.net/json_encode to translate that php variables / objects.