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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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 :


All versions of pakket with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0|^8.1|^8.2|^8.3
symfony/console Version ^5.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webdevvie/pakket contains the following files

Loading the files please wait ....