Download the PHP package ysocode/commit without Composer

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

Commit - Automate your Conventional Commit messages with AI

Latest Version on Packagist Downloads on Packagist License

Introduction

Commit is a PHP package that automates the generation of Conventional Commit messages using AI. By analyzing your staged changes, it generates clear and structured commit messages that strictly follow the Conventional Commits standard.

Official Documentation

Install Commit using Composer:
Initialize Configuration

To initialize the necessary configuration files:

Manage AI Provider

List all enabled AI providers

To display all enabled AI providers:

Set the default AI provider

To define which AI provider should be used as default:

If no provider argument is specified, an interactive prompt will appear, allowing you to select the desired AI provider.

Get the current default AI provider

To display the current AI provider:

Managing API keys

Set your API key for a specific AI provider

Commit allows you to set your API keys for the AI providers you choose. To set your API key for an AI provider, use the following commands:

If you don't specify a provider, an interactive prompt will appear with a list of enabled AIs for you to select from.

Get the current API key for a specific AI provider

Display the currently stored API key for the specified AI provider:

If you don't specify a provider, the default AI provider will be selected automatically.

Sourcegraph Provider

Sourcegraph is available as an AI provider in our list of supported services. To use Sourcegraph, you must first install the Cody CLI:

For a comprehensive guide on Cody CLI installation and configuration, visit the Cody CLI documentation.

Now that you have the Cody CLI available, you can follow the same process as other AI providers by setting your key, and ysocode/commit will handle the rest for you:

The key you set here corresponds directly to the SRC_ACCESS_TOKEN used by the Cody CLI.

Main functionality

Generate a Commit Message

To automatically generate a Conventional Commit message based on the current staged changes:

This will display the generated commit message for your confirmation before finalizing the commit.

Using a Custom Diff

You can provide a custom diff instead of using the automatically detected staged changes:

Using options to customize the commit

Use the --provider option to select the AI provider:

Use the --lang option to specify the language for the commit message:

Enabled languages:

License

Commit is open-sourced software licensed under the MIT license.


All versions of commit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
symfony/console Version ^7.2
symfony/process Version ^7.2
symfony/http-client Version ^7.2
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 ysocode/commit contains the following files

Loading the files please wait ....