box-project / box2

An application for building and managing Phars.
https://box-project.github.io/box2/
MIT License
1.19k stars 80 forks source link

What does "stub": true do? #175

Closed georgy7 closed 6 years ago

georgy7 commented 6 years ago

And is there anywhere verbose documentation about all the options of box.json.

kherge commented 6 years ago

Hi @georgy7, you can find full documentation by running box help build.

Other information can be found on the website (link).

georgy7 commented 6 years ago

Hi @kherge. I read the web page, but it does not explain what is stubs ("custom stubs", "stubs in existing Phars"). I don't get, what is this. And box help build did not help.

georgy7 commented 6 years ago

Ok, this is something, that loads code. 🤔 http://fi2.php.net/manual/en/phar.fileformat.stub.php

georgy7 commented 6 years ago

Thanks, but I still think, this project needs more documentation.

theofidry commented 6 years ago

@georgy7 you can find a fork at https://github.com/humbug/box where I attempted to make the documentation a bit more exhaustive. It still is missing some bits which are more specific to PHARs (which IMO shouldn't be in the official PHP doc) but I hope has been improved over Box2