Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Introducing the CakeFramework, making plugins easier to make.

Comments in 'Plugin Development' started by sekjun9878, Sep 3, 2013.

  1. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    Hello guys.

    I've been working on a Framework that is designed to help beginning plugin developers to develop plugins without having to program all their routing and condition handling.

    It is called: CakeFramework!

    Normally, with PHP plugin development, you would have to program everything from routing, command registering, switch statements, advanced PHP functions and API by yourself.
    Now, with this framework, everything is routed automatically and variables are mapped to simplify and ease making of very simple plugins.

    For example:
    To make a simple plugin that displays 'Hello World' when /hello is typed on the console, all the developer has to do is make a file called Plugins/HelloWorld(PluginName)/Commands/Hello(CommandName).php, and place
    Code:
    $this->API->broadcast("Hello World");
    in it.

    Currently, all this framework does is route commands automatically to the right places according to directory structure so the developer does not have to route them.

    The link is:
    https://github.com/sekjun9878/CakeFramework
    but consider this project as a Proof of Concept and not a real framework, as it is not designed to be one.

    Have fun!
    Last edited: Oct 2, 2013
  2. Darunia18
    Offline

    Darunia18 Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    755
    Plugins:
    2
    Minecraft User:
    Darunia18
    Very cool! :D I love your side projects you do. They are all really neat and there's very useful stuff too!
  3. ZacHack
    Offline

    ZacHack Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    326
    Plugins:
    6
    Minecraft User:
    _ZacHack_
    That's cool! but I'm not gonna use it :/ it kind of confuses me. But it's fantastic for beginners so they can learn the basics about the action codes
  4. PocketMinecrafter95
    Offline

    PocketMinecrafter95 New Member

    Joined:
    Aug 29, 2013
    Posts:
    27
    Minecraft User:
    Wenyi9080
  5. Humerus
    Offline

    Humerus Staff Member Plugin Reviewer

    Joined:
    Aug 23, 2013
    Posts:
    114
    Plugins:
    1
    Name sounds similar to CakePHP.
  6. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,132
    Plugins:
    4
    Minecraft User:
    iksaku
    @sekjun9878 can you re-upload this "framework" to your site? I really want to use it :)
  7. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
  8. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,132
    Plugins:
    4
    Minecraft User:
    iksaku
  9. VanishedKevin
    Offline

    VanishedKevin Banned

    Joined:
    Aug 27, 2013
    Posts:
    279
    Minecraft User:
    VanishedKevin
    But is there a way to pack the plugin to a single PHP file?
  10. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    Not right now, as the whole command routing is based on Directory Structure.
  11. VanishedKevin
    Offline

    VanishedKevin Banned

    Joined:
    Aug 27, 2013
    Posts:
    279
    Minecraft User:
    VanishedKevin
    Anyways, that's a good plugin!
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What about interpreters of other languages? (I am trying to make one)
  13. VanishedKevin
    Offline

    VanishedKevin Banned

    Joined:
    Aug 27, 2013
    Posts:
    279
    Minecraft User:
    VanishedKevin
    Do you want a VB one?
  14. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I am making one for PocketMine version ModPE.
  15. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You mean a ZIP?
  16. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    No. An actual recursive directory structure is required. Much like PSR-0 standard used in PHP applications and frameworks.
  17. VanishedKevin
    Offline

    VanishedKevin Banned

    Joined:
    Aug 27, 2013
    Posts:
    279
    Minecraft User:
    VanishedKevin
    Maybe we can make an IDE for PocketMine plugins developing. :)

Share This Page

Advertisement