Download the PHP package beecodersteam/mycommands without Composer
On this page you can find all versions of the php package beecodersteam/mycommands. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beecodersteam/mycommands
More information about beecodersteam/mycommands
Files in beecodersteam/mycommands
Package mycommands
Short Description A bunch of useful terminal commands
License MIT
Informations about the package mycommands
My Commands
A curated suite of CLI tools built with PHP and the Symfony Console component. Automate repetitive tasks, streamline your workflow and integrate with OpenAI for AIβpowered features. The project is designed for easy extension so you can add your own commands whenever needed.
π¬ Demo
Contents
- Prerequisites
- Features
- Installation
- Usage
- Development
- Contributing
- License
π Prerequisites
Before installing and running the project, ensure you have the following:
- PHP 8.1+: Required runtime environment
- Composer: For dependency management
- Git: For version control operations
- OpenAI API Key: Required for AI-powered features (obtain from OpenAI's website)
β¨ Features
- AI-Powered Git Commits: Generate semantic commit messages automatically
- OpenAI Integration: Send custom prompts and receive AI-generated responses
- Development Workflow Tools: Zip directories, manage environment variables, and more
- Docker Management: Easily list and stop Docker containers
- Currency Conversion: Convert between currencies directly from your terminal
- Extensible Architecture: Easily add your own custom commands
β‘ Quick Start
Run the installer script and reload your shell:
List available commands with:
π Installation
You can install My Commands in three ways:
Option 1: Using the Installation Script (Recommended)
The installation script automatically:
- β Checks if PHP and Composer are installed
- β Installs all dependencies
- β Creates a symbolic link for global access
- β Configures shell autocompletion
Option 2: Manual Installation
If you prefer step-by-step manual installation:
-
Install dependencies:
-
Create a symbolic link for global access:
-
Configure shell autocompletion:
- Reload your shell configuration:
Option 3: Install via Composer
Once this package is available on Packagist you can install it globally with Composer. The installer script will run automatically after installation:
π§ Usage
To see all available commands:
Example Commands
Command Autocompletion
Tab completion is automatically activated during installation. Simply type my
and press Tab to see available commands.
Updating Autocompletion
If you create new commands, regenerate the completion file:
π» Development
Available Commands
Command | Description |
---|---|
my ai:ask |
Ask a question to OpenAI |
my ai:commit |
Generate a semantic commit message |
my ai:reset-key |
Reset your OpenAI API key |
my currency:convert |
Convert between currencies |
my docker:list |
List running Docker containers |
my docker:stop-all |
Stop all running Docker containers |
my env:set |
Set an environment variable |
my env:unset |
Unset an environment variable |
my git:soft-revert |
Soft revert Git changes |
my git:stash |
Stash Git changes |
my git:stash-restore |
Restore stashed Git changes |
my zip:all |
Zip the current directory |
Code Quality
Adding New Commands
-
Create a new command class in the
src/Command
directory: - Register your command in
bin/my
.
π¦ Publishing to Packagist
- Push your repository to a public hosting service like GitHub.
- Tag a release, for example
git tag v1.0.0 && git push --tags
. - Create an account on Packagist and submit the repository URL.
- Once approved, users can install the package via Composer as shown above.
π€ Contributing
Contributions are welcome and appreciated! Here's how you can contribute:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
If you encounter any problems or have suggestions, please open an issue.
π License
This project is licensed under the MIT License.
Built with β€οΈ by luizalbertobm
All versions of mycommands with dependencies
ext-xml Version *
ext-mbstring Version *
symfony/console Version ^7.2
symfony/process Version ^7.2
symfony/http-client Version ^7.2
react/http Version ^1.11
react/event-loop Version ^1.5