Download the PHP package mdeloughry/gcm-gen without Composer

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

GCM-Gen (Git Commit Message Generator)

GCM-Gen is a CLI tool that generates meaningful commit messages by analysing your git changes. It uses AI to understand your code changes and generate appropriate commit messages. Supports both ChatGPT and Ollama for AI processing.

Features

Choosing an LLM Provider

GCM-Gen supports two AI providers, each with their own advantages:

ChatGPT (Recommended for Best Results)

Ollama (Recommended for Privacy/Offline Use)

Choose ChatGPT if you want the best quality commit messages and don't mind the API costs. Choose Ollama if you need to keep your code private or want a free, offline solution.

Requirements

Core Requirements

AI Provider Requirements

Option 1: ChatGPT

  1. OpenAI API Key

Option 2: Ollama

  1. Install Ollama
    • Visit Ollama.ai to download and install
    • Follow the installation instructions for your operating system
  2. Start the Ollama service:

  3. Pull the required model:

Installation

Global Installation

Make sure your global Composer bin directory is in your system's PATH.

Usage

Configuration

On first run, GCM-Gen will create a configuration file at ~/.config/gcm-gen.config.php. You can edit this file directly or use:

Configuration Options

The configuration file supports both ChatGPT and Ollama providers. Here's a complete example:

Configuration Breakdown

Development Setup

  1. Clone the repository:

  2. Install dependencies:

  3. Set up your environment:

    • Copy .env.example to .env
    • Add your OpenAI API key to .env
  4. Run tests:

Development Requirements

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any problems or have suggestions, please open an issue.


All versions of gcm-gen with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.0
nunomaduro/termwind Version ^1.15
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 mdeloughry/gcm-gen contains the following files

Loading the files please wait ...