Download the PHP package eusouomichel/php-commit without Composer

On this page you can find all versions of the php package eusouomichel/php-commit. 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 php-commit

πŸš€ PHP Commit

PHP Version Packagist

PHP Commit is a powerful, user-friendly Open Source library that revolutionizes how you create Git commit messages. With intuitive interactive prompts and intelligent automation, it ensures your commit history is always clean, consistent, and professional.

✨ Key Features:

Built following Conventional Commits specifications, PHP Commit transforms your development workflow by making commit messages meaningful, searchable, and automatically processable by tools.

Installation

To use this library, ensure Composer is installed on your system. If not, you can install it by following the official instructions at https://getcomposer.org.

Once Composer is installed, you can add the library to your project by running:

Initial Setup

After installation, run the following command to generate the php-commit.json configuration file:

During initialization, you will be prompted to configure:

The php-commit.json file will be created in the current directory. You can edit this file later to adjust the configuration as needed.

Here is an example of a generated php-commit.json file:

🎯 Usage

⚑ Quick Commands (Recommended)

For easier usage, add these scripts to your composer.json:

Then use these simple commands:

πŸš€ Traditional Usage

  1. Initialize the configuration:

  2. Create your first commit:

  3. Quick WIP commit:

πŸ“ Creating Custom Commit Messages

To create a custom commit message, use:

This launches an interactive session with beautiful prompts:

Generated commit message:

πŸ…°οΈ Alternative Command Methods

Shell Aliases

Add to your shell config (~/.zshrc, ~/.bashrc, etc.):

Global Installation

πŸ‘ Creating Automatic WIP Commits

For quick "Work In Progress" (WIP) commits, use the command:

This will automatically add files (if configured) and create a WIP commit with a predefined message.

Pre-Commit Commands and Prohibited Strings

You can configure pre-commit commands in the php-commit.json file. These commands will run before the commit is created. You can also specify prohibited strings that should not appear in files being committed.

If prohibited strings are detected, the commit will be blocked, and detailed error messages will be displayed.

🌍 Multi-Language Support

The library supports multiple languages for interactive prompts. You can set the desired language by updating the language field in the php-commit.json file.

Available languages:

βš™οΈ Advanced Configuration

Pre-commit Commands

Automate your workflow by adding pre-commit commands:

Prohibited Strings

Prevent sensitive data from being committed:

❓ FAQ

Q: Can I use this with existing projects? A: Yes! Just run php vendor/bin/commit init in your project root.

Q: What if I want to skip the interactive prompts? A: Use --wip flag for quick commits: php vendor/bin/commit message --wip

Q: How do I add a new language? A: Create a new JSON file in src/lang/ following the existing structure.

Q: Can I customize commit types? A: Currently, we use standard Conventional Commits types. Custom types are planned for future releases.

Q: Does this work with Git hooks? A: Yes! You can integrate PHP Commit with your existing Git hooks workflow.

πŸ”§ Troubleshooting

Configuration file not found?

Command not found?

Permission denied?

Project Structure

Contributing

We welcome contributions! To contribute:

  1. Fork the repository.

  2. Create a new branch for your feature: git checkout -b my-feature.

  3. Commit your changes: git commit -m 'feat: My new feature'.

  4. Push the branch: git push origin my-feature.

  5. Open a Pull Request.

License

This project is licensed under the MIT License.


All versions of php-commit with dependencies

PHP Build Version
Package Version
Requires symfony/console Version ^7.1
symfony/process Version ^7.1
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 eusouomichel/php-commit contains the following files

Loading the files please wait ...