installation  »  composer

Composer

Full Framework

If you want to use the full framework and all of its components, you can install the popphp/popphp-framework repository in the following ways:

1. Create a New Project

You can create a new project with the composer create-project command, which is recommended. This way, you will have access to the CLI-helper script kettle in the main project folder:

composer create-project popphp/popphp-framework project-folder
2. Clone the Repo

You can clone this repository directly, which will also install the kettle script in the main project folder:

git clone https://github.com/popphp/popphp-framework.git popphp
cd popphp
composer install
3. Use composer require

You can add it to an existing project with the composer require command:

composer require popphp/popphp-framework
4. Use composer.json

You can add it your project's composer.json file:

"require": {
    "popphp/popphp-framework": "^5.4.0"
}

Core Only

If you only want to use the core components, you can use the popphp/popphp repository instead of the full popphp/popphp-framework repository.