Code Monkey home page Code Monkey logo

phpaxieschool's Introduction

PHPAxieSchool

PHPAxieSchool is a PHP script that aims to help managers and scholars in their Axie Infinity journey

The script/developer are NOT affiliated with Axie Infinity

This script use public data, no private key needed !

Features

At the end of each day, the script gather data on Axie and Coingecko API servers, then build and send an email report to the manager and his scholars. Each report contain :

  • The MMR
  • The SLP earned for the day (the SLP amount should be right even if a claimed occurred)
  • Average SLP and MMR
  • SLP for today before/after the share
  • In-game SLP before/after the share
  • Expected for 30 days SLP before/after the share
  • The SLP current price (versus currency)
  • More to come ...

You can define different currencies for the manager and for each of the scholars. (usd, php ...)

Report screenshots

Manager report example

Manager report

Scholar report example

Scholar report

Installation

  • Edit config.php
  • Send the files and folders to your server
  • Make sure /data/ and /logs/ are recursively writable by the script
  • (optionnal) Put .htaccess and .htpasswd
  • Set a cron to run at 0:00 UTC precisely every day (you could use https://cron-job.org/en/)

Give a try

Run index.php from the browser, this will fetch the latest data on prices and scholars (at first time run only). The HTML manager report will then be displayed.

Note: First day will not show the SLP !!! (it needs 2 days to be calculated)

Also feel free to check inside the logs folder, everything is logged.

Is it safe to use ?

Yes, it is safe. According to Axie Terms Of Use (at time of writing) (https://axieinfinity.com/terms/), article 2.5 :

(5) you will not access the Site, the App and the Smart Contracts through automated and non-human means, whether through a bot, script or otherwise. Except as expressly mentioned herein;
Scholarship management
building public tools and bots that facilitate transparency and analysis.
building private, non-commercial tools which store data for analytical purposes. Note that anyone abusing public APIs by spamming requests will be banned from using such APIs in the future.

Dependencies

PHPAxieSchool is using the following dependencies. Big thanks to them.

Name URL
PHPMailer [https://github.com/PHPMailer/PHPMailer/]
sleekdb [https://sleekdb.github.io/]

Also thanks to https://github.com/leemunroe/responsive-html-email-template

Support & donations

Feel free to open an issue for any question

If you use this free program a donation is greatly appreciated, even a few SLP would mean the world to me,

ronin:066149e4e914e33b76d612c93eae03df6d9db91a

thanks ! :)

phpaxieschool's People

Contributors

n0raban avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

phpaxieschool's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.