Download the PHP package webdevvie/pakket without Composer
On this page you can find all versions of the php package webdevvie/pakket. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webdevvie/pakket
More information about webdevvie/pakket
Files in webdevvie/pakket
Package pakket
Short Description Makes phar files from either inside your project or... outside of it as a phar itself!
License Apache-2.0
Informations about the package pakket
Pakket
Pakket is the Dutch word for package. This tool will help you package your project into a PHAR file.
It is meant to be framework agnostic. It does not include update code (for downloading new versions of the phar with the phar itself Look elsewhere for that It just makes PHAR files.
This is the initial version. I suggest not using it for production just yet.
How to use as a library
Either include the package using composer using :
Create your phar stub (the thing that calls your other files inside your phar file) and call it "stub"
Then create a builder object
And you are off to the races!
Of course you may not want to include everything and the kitchen sink into your phar. (Making a "Homer") You can exclude these by filling the key "exclude" with an array of regular expressions (these are thrown through preg_match)
How to use as a phar
Download a prebuilt pakket.phar from here(todo get a place to host the phar files)
Create a pakket.json with the correct configuration.
This is a sample pakket.json that is used for pakket itself
In this case we create the file yourphar.phar
parsing the /console file to include the default variables.
Create your phar stub (the thing that calls your other files inside your phar file) and call it "stub"
Now run pakket.phar
Here the command is build
the path to work with is .
(current directory) the output file is yourphar.phar
You can also specify the output (say you want to specify a target file in command line with automated builds)
Here the command is build
the path to work with is .
(current directory) the output file is yourphar-1.0.phar
TODO
The following things are still todos :
- A setup command that configures the pakket.json file
- A better help text
- Get a place to host the .phar file