Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

NoorDeen's avatar

using php phar files for deployment

hi every body . I wont to compress web project based on Laravel to PHP archive (PHAR) file . I searched in the internet and found good package to ease the process . tylor him self use it to create Laravel installer . this is a link to the package L told you => https://github.com/box-project/box2 .

I have many question about this : first : what I need to make PHAR file - with or without the package - ? second : what is downside of run web application from inside PHAR file ?

0 likes
2 replies
CraftThatBlock's avatar

I wouldn't run a web application inside a phar file, even if it's possible(?).

You'd need the packages for deploying.

NoorDeen's avatar

hi @CraftThatBlock i know that . my first reason to compress my application because of the application dependencies .

I have another question is there any performance issues with phar files ?

Please or to participate in this conversation.