You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the most recent builds are missing on the website. The most recent build there available is 5.1.20240307. When will the more recent builds added to the website?
Kind regards,
Bernhard
Reacted by Christoffer Lindahl Hassel, Laurent Laville and Lars Moelleken
And then compile the Codeception PHAR distribution with following command :
php box.phar compile (default uses the box.json config filename)
You'll get something like :
____
/ __ )____ _ __
/ __ / __ \| |/_/
/ /_/ / /_/ /> <
/_____/\____/_/|_|
Box version 4.6.7@190d527 2025-09-06 15:45:56 UTC
// Loading the configuration file "/shared/backups/github/Codeception/box.json".
🔨 Building the PHAR "/shared/backups/github/Codeception/codecept.phar"
? Checking Composer compatibility
> Supported version detected
? No compactor to register
? Adding main file: /shared/backups/github/Codeception/codecept
? Adding requirements checker
? Adding binary files
> No file found
? Auto-discover files? No
? Exclude dev files? Yes
? Adding files
> 4647 file(s)
? Generating new stub
- Using shebang line: #!/usr/bin/env php
- Using banner:
> Generated by Humbug Box 4.6.7@190d527.
>
> @link https://github.com/humbug/box
? Dumping the Composer autoloader
? Removing the Composer dump artefacts
? Compressing with the algorithm "GZ"
> Warning: the extension "zlib" will now be required to execute the PHAR
? Setting file permissions to 0755
* Done.
💡 1 recommendation found:
- The "main" setting can be omitted since is set to its default value
No warning found.
// PHAR: 4680 files (4.60MB)
// You can inspect the generated PHAR with the "info" command.
// Memory usage: 76.69MB (peak: 77.98MB), time: 11secs
Activity
Naktibalda commentedon May 30, 2025
@TavoNiievez building phar files was manual process: https://github.com/Codeception/Codeception/wiki/Release-process
TavoNiievez commentedon May 31, 2025
@Naktibalda is it possible to generate the phar of the previous tags or is it only possible with the last one?
Naktibalda commentedon Jun 2, 2025
You would have to hardcode specific version in https://github.com/Codeception/codeception.github.com/blob/master/RoboFile.php to achieve that, but why bother?
Robofile.php changes are required to implement
buildPhar82method and handle builds requiring PHP 8.2 differently inupdateBuildsPageBernhard-Krop commentedon Sep 9, 2025
Hi there,
are there any updates on this ticket? New builds are still not available.
Kind regards,
Bernhard
llaville commentedon Sep 12, 2025
Hi all,
There is another alternative (see https://github.com/box-project/box) that can build a PHAR distribution easily.
I've generated a quick
box.jsonconfig file (as follow), if you want to test the PHAR version.{ "main": "codecept", "compression": "GZ", "directories": [ "ext", "package", "src", "vendor" ], "files": [ "codecept", "app.php", "autoload.php", "functions.php" ] }Put the json config file with previous contents at root of the Codeception repo.
You can download the most recent BOX phar version at https://github.com/box-project/box/releases/download/4.6.7/box.phar
And then compile the Codeception PHAR distribution with following command :
php box.phar compile(default uses thebox.jsonconfig filename)You'll get something like :
I've not tested all features to see if it's running as expected, but at least the
run Unitcommand seems to work fine.Tested on my project (https://github.com/llaville/sarif-php-sdk/tree/2.3) where I've recently introduced support of Codeception v5.
Hope it will help, and enjoy !
DeliriousMonad commentedon May 12, 2026
The above mentioned phar build instructions using box did not work for me.
This worked for me:
This will result in a file
codeception.phar.W0rma commentedon Nov 18, 2026
Fixed in #6960
The phar build for the latest release is available in https://github.com/Codeception/Codeception/releases/latest/download/codecept.phar
Phar files are now built automatically on every new release.
The file is attached to the GitHub release - see f.e. https://github.com/Codeception/Codeception/releases/tag/5.3.7