Introduction

Before you can start using phpkg to manage your application's dependencies, you'll need to do some initial setup. The init command can help you do this quickly and easily.

Usage

To initialize your application for use with phpkg, simply run the following command in your project's root directory:

phpkg init

This command will create the following files and directories:

  • A phpkg.config.json file, which contains the configuration settings for your application.
  • A phpkg.config-lock.json file, which is used to keep track of the packages that have been added to your application.
  • A directory for storing the source code of packages that you add to your application. By default, this directory is named Packages.

If you prefer to use a different directory name for storing added packages, you can specify it when you run the init command. For example:

phpkg init --packages-directory=vendor

Once your application has been initialized, you can start customizing your phpkg.config.json file to suit your needs. For more information on how to do this, see the customization documents.

Why This Matters?

We believe that PHP has enormous untapped potential, and we are dedicated to creating tools that empower developers to harness its full power and capabilities. We aim to unlock this potential by creating tools that help developers harness PHP's full capabilities and extend its power to new heights. To this end, we developed phpkg, a cutting-edge package manager that simplifies the process of using PHP to its fullest extent. With phpkg, developers can take advantage of all that PHP has to offer and build more efficient, scalable, and powerful applications.