Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 541 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 541 Bytes

SpaceTrader PHP

Client and tools for interacting with the SpaceTraders API. Follow development along in a series for php[architect] magazine at https://phparch.com

Sample Usage

Register a new agent. Don't forget to grab the token for authentication until the next server reset. Save the token in .env

./spacetraders register symbol=YOUR_CALLSIGN faction=COSMIC > out.json

Get Info about your agent:

./spacetraders myagent

Add the token to .env file to authenticate other requests.