1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Wanting to start learnin php plugin developement for BE

Discussion in 'General discussion' started by MrPoly, Oct 31, 2018.

  1. MrPoly

    MrPoly Creeper

    Messages:
    1
    GitHub:
    mrpoly
    Hello, I am currently interested in learning or starting to learn how to code my first plugin in php which I hope in the future I can apply my knowledge and build my own plugins. That being said, do you guys have any pointers or great references to start out from?

    Many thanks
    - Poly
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    mainly just try to learn PHP without PMMP
    you will need some time to get used to normal php before you should event attempt to touch PMMP
    and then try PHP OOP in web too

    i know like these are not what you wanted to learn but it can surely make your life easier when you understand the basics
    like you can just play around till you get the hang of it
    the rest comes naturally once you know OOP+PHP you will NEED a good ide to be able to assist you in utilizing the new found knowledge
    like once you had these you can easily look at an example plugin/PMMP itself for resource
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    inb4 all plugins try to send chat messages to players with
    PHP:
    echo "Welcome to xxx server.<br/>";
    ?>
    <script>alert("Trolllolol");</script>
    <?php
    help it not workz y thx
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    scaringly close to future when scripting api is a thing
    the alert() will be bane of everyone
     
  5. Diduhless

    Diduhless Baby Zombie

    Messages:
    199
    GitHub:
    Diduhless
  6. artulloss

    artulloss Witch

    Messages:
    63
    GitHub:
    artulloss
    You should take a course on php thats not related to pocketmine. I took the one on sololearn and it's pretty good, but by itself no course is enough so also make sure to code a lot if you can. The pocketmine API is generally simple, just make sure that when you start you're not blindly doing things by copying what other people do, make sure to look at the classes you're using and when you get stumped only then look to see what other people do regarding the API. Good luck
     
    MrPoly likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.