Search code examples
codeceptionphar

How to save php files as .phar or edit source code saved as .phar?


I have downloaded Codeception source code (in .phar format), but I need to add same changes there. So, I want to edit this .phar file, but cannot find a solution, how to do this.


Solution

  • You can build your own phar by using Robo tool.

    It is documented in http://codeception.com/install

    1. Clone from GitHub:
      • git clone git@github.com:Codeception/Codeception.git
    2. Install dependencies with Composer
    3. Make your changes
    4. Install Robo
    5. Build package
      • php robo.phar build:phar