Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile with a PHAR? #8

Closed
wesmontgomery opened this issue May 16, 2022 · 4 comments
Closed

How to compile with a PHAR? #8

wesmontgomery opened this issue May 16, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@wesmontgomery
Copy link

I want to compile PHP and a PHAR together as a single application. How would this be possible?

Looking to use something like box:

box-project/box#331

@crazywhalecc
Copy link
Owner

Making PHP binary and PHP code together is a good issue, and this project can build an single php static binary file with extensions but not single application with code.

I saw a repo https://github.com/dixyes/phpmicro, this can patch the php source to achieve this, but I haven't tried it. Maybe it can integrate with static-php-cli project.

@crazywhalecc
Copy link
Owner

I made it, and built a single file application!

@crazywhalecc crazywhalecc added enhancement New feature or request good first issue labels May 16, 2022
@crazywhalecc
Copy link
Owner

Solved. You can follow README to download or compile micro and put code and php binary together.

@wesmontgomery
Copy link
Author

Thank you! Will try this out soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants