# Anyone using ESI on PHP?

**URL:** <https://forums.eveonline.com/t/anyone-using-esi-on-php/25531>\
**Category:** Third Party Developers\
**Created:** [September 18, 2017, 8:11pm UTC](https://forums.eveonline.com/t/anyone-using-esi-on-php/25531 "2017-09-18T20:11:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Lemmonte](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/eric_lemmonte/32/23745_2.png) [@Eric\_Lemmonte](https://forums.eveonline.com/u/Eric_Lemmonte)\
**Post date:** [September 18, 2017, 8:11pm UTC](https://forums.eveonline.com/t/anyone-using-esi-on-php/25531/1 "2017-09-18T20:11:52Z")

</div>

Of course I wrote most of my website using the xml from API… Then I realized ESI is going to be the new standard and eventually API is going away.

I’m looking for any samples of code to use OAuth _with_ ESI on PHP.

---

<div class="post-metadata">

**Author:** ![Steve\_Ronuken](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/steve_ronuken/32/373894_2.png) [@Steve\_Ronuken](https://forums.eveonline.com/u/Steve_Ronuken)\
**Post date:** [September 18, 2017, 8:45pm UTC](https://forums.eveonline.com/t/anyone-using-esi-on-php/25531/2 "2017-09-18T20:45:32Z")

</div>

tbh, if you’ve used CREST, ESI is pretty much the same. It’s just calls to a url.

You auth in _exactly_ the same way as with CREST, just with different scopes.

---

<div class="post-metadata">

**Author:** ![Eric\_Lemmonte](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/eric_lemmonte/32/23745_2.png) [@Eric\_Lemmonte](https://forums.eveonline.com/u/Eric_Lemmonte)\
**Post date:** [September 18, 2017, 9:06pm UTC](https://forums.eveonline.com/t/anyone-using-esi-on-php/25531/3 "2017-09-18T21:06:20Z")

</div>

I’ll give it a look. Thanks.

---

<div class="post-metadata">

**Author:** ![Minerva\_Arbosa](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/minerva_arbosa/32/263946_2.png) [@Minerva\_Arbosa](https://forums.eveonline.com/u/Minerva_Arbosa)\
**Post date:** [September 20, 2017, 7:32pm UTC](https://forums.eveonline.com/t/anyone-using-esi-on-php/25531/4 "2017-09-20T19:32:48Z")

</div>

I have only utilized PHP for authing into ESI. I don’t use OAuth, but I did test it for a bit.

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [September 21, 2017, 1:05am UTC](https://forums.eveonline.com/t/anyone-using-esi-on-php/25531/5 "2017-09-21T01:05:18Z")

</div>

You still used OAuth. That is how you get your token and such.

---

<div class="post-metadata">

**Author:** ![Minerva\_Arbosa](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/minerva_arbosa/32/263946_2.png) [@Minerva\_Arbosa](https://forums.eveonline.com/u/Minerva_Arbosa)\
**Post date:** [September 21, 2017, 6:10am UTC](https://forums.eveonline.com/t/anyone-using-esi-on-php/25531/6 "2017-09-21T06:10:09Z")

</div>

What I mean is I don’t use the PHP package called OAuth. I used cURL commands to create my own OAuth style package rather than using the package you can find on packagist.

---

<div class="post-metadata">

**Author:** ![Snitch\_Ashor](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/snitch_ashor/32/470084_2.png) [@Snitch\_Ashor](https://forums.eveonline.com/u/Snitch_Ashor)\
**Post date:** [September 28, 2017, 11:36am UTC](https://forums.eveonline.com/t/anyone-using-esi-on-php/25531/7 "2017-09-28T11:36:58Z")

</div>

I think what he’s saying is that you still use the oauth protocol, anyway… As mentioned before it’s exactly the same as for CREST, the auth process is independent of ESI, just the scopes might be different. If you want a specific example in php, this is my login page:  
[https://bitbucket.org/snitchashor/spacemail/src/0339b7a4453d375e1f5a3f2589a71fe2729d2a4e/login.php?at=master&fileviewer=file-view-default](https://bitbucket.org/snitchashor/spacemail/src/0339b7a4453d375e1f5a3f2589a71fe2729d2a4e/login.php?at=master&fileviewer=file-view-default) (this one redirects to the login server and is also the callback url, eventually redirecting to different internal pages)

and heres the underlying ESISSO class:  
[https://bitbucket.org/snitchashor/spacemail/src/0339b7a4453d375e1f5a3f2589a71fe2729d2a4e/classes/class.esisso.php?at=master&fileviewer=file-view-default](https://bitbucket.org/snitchashor/spacemail/src/0339b7a4453d375e1f5a3f2589a71fe2729d2a4e/classes/class.esisso.php?at=master&fileviewer=file-view-default)  
Hope this helps,

Bests, Snitch

---

<div class="post-metadata">

**Author:** ![Malcorath\_Sacerdos](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/malcorath_sacerdos/32/32451_2.png) [@Malcorath\_Sacerdos](https://forums.eveonline.com/u/Malcorath_Sacerdos)\
**Post date:** [October 25, 2017, 4:06pm UTC](https://forums.eveonline.com/t/anyone-using-esi-on-php/25531/8 "2017-10-25T16:06:13Z")

</div>

hi there im kinda new to php but i am learning. however i have not yet made a third party tool for eve and want to get into it. is there any good tutorial out there how to get started using the ESI for us third party newbros?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [January 23, 2018, 4:06pm UTC](https://forums.eveonline.com/t/anyone-using-esi-on-php/25531/9 "2018-01-23T16:06:15Z")

</div>

Closed on January 23, 2018, 4:06pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
