Download the PHP package yohaw/pppr without Composer
On this page you can find all versions of the php package yohaw/pppr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package pppr
Short Description Prepare PHP Project Production Ready. This Extension about preparing PHP project production ready
License MIT
Informations about the package pppr
PPPR - Prepare PHP Project Production Ready
Description
PPPR
is a PHP package that helps you prepare your PHP project for production. It handles tasks such as setting up configuration files, copying .env
files, and preparing your project structure, making it easier to deploy to a production environment.
PPPR - Prepare PHP Project Production Ready
PPPR
is a PHP package that helps you prepare your PHP project for production. It handles tasks such as setting up configuration files, copying .env
files, and preparing your project structure, making it easier to deploy to a production environment.
Features
- Automatically prepares your PHP project for production.
- Sets up necessary files like
.env
,.env.example
, and other configurations. - Can be easily installed and integrated into any PHP project.
Installation
You can install PPPR
via Composer, which is the preferred method of installation.
1. Install via Composer
To install the package, run the following command in the root directory of your PHP project:
This will add the PPPR
package to your composer.json
and install it into your project.
2. Manual Installation
If you prefer, you can also manually add the dependency in your composer.json
file under the "require"
section:
Then run:
Usage
Once the package is installed, you can use it to prepare your PHP project for production.
Example: Using PPPR
to Prepare Your Project
Create a PHP file where you want to trigger the preparation (for example, prepare.php
):
How It Works
- Configuration Files:
PPPR
can generate and copy configuration files, such as.env
,.env.example
, and others. - File Preparation: The package ensures that the project structure is set up for production with proper settings.
The example above demonstrates how to use the PrepareProject
class from your package to execute the preparation process.
How to Update Your Package
If you update your PPPR
package, follow these steps:
1. Increment the Version
In your composer.json
, make sure to update the version number according to the changes made. For example:
2. Commit and Tag the Version
Once you've made changes to your package, commit and tag the new version:
3. Push Changes to Packagist
If you're distributing the package via Packagist, ensure that the version tag is detected. Packagist should automatically update, but you can manually check by going to your package page on Packagist.
4. Update Dependencies in Projects
Once the version is updated, other projects can use composer update
to pull in the latest version.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Authors
- Yohannes Zerihun - [email protected]
This is a template you can adapt and update as needed. It provides clear installation, usage instructions, and versioning guidelines for your package.