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

Help. How to decompile phar ===> php and php ===> phar ???

Comments in 'Plugin Development' started by bukkits, Jun 29, 2014.

  1. bukkits
    Offline

    bukkits New Member

    Joined:
    Jun 29, 2014
    Posts:
    4
    Minecraft User:
    bukkits
    Help. How to decompile phar ===> php and php ===> phar ???
    (I want to translate the plugin into another language)
    in php format is easy to do. How to translate the plugin in phar format?
    please tell me.

    ps:I do not understand English
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    AndrewBit likes this.
  3. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
    Use DevTools plugin.
    Use commands:
    /makeplugin 'pluginname' php==>phar
    /extractplugin 'pluginname' phar==>php
    Survingo likes this.
  4. Jellyfishcoder
    Offline

    Jellyfishcoder New Member

    Joined:
    Mar 12, 2016
    Posts:
    4
    Does this work for comiling pocketmine to a phar
  5. Survingo
    Offline

    Survingo Active Member

    Joined:
    Dec 6, 2015
    Posts:
    221
    Use DevTools plugin.
    Use commands this:
    /makeplugin 'pluginname' php==>phar
    /extractplugin 'pluginname' phar==>php

    unphar.com Extract the phar
    /makeserver Makes a pocketmine phar (use on Windows)
    Jellyfishcoder likes this.
  6. Jellyfishcoder
    Offline

    Jellyfishcoder New Member

    Joined:
    Mar 12, 2016
    Posts:
    4
    Ok, thanks, but I only have mac and linux. Ill try it on a VM.
  7. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    Use commands this:
    /makeplugin 'pluginname' php==>phar
    /extractplugin 'pluginname' phar==>php

    unphar.com DECOMPILE a phar
    Compile a phar
    PHP:
    $phar = new \Phar($pharFile0'phar.phar');
    $phar->setSignatureAlgorithm(\Phar::SHA1);

    This is plugin development section, no?
    Jankirby likes this.
  8. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
  9. jasonwynn10
    Offline

    jasonwynn10 Active Member

    Joined:
    Dec 20, 2015
    Posts:
    87
    Minecraft User:
    jasonwynn10
    mcpe.me/pocketmine now has the ability to un arvhive and rearchive php files

Share This Page

Advertisement