All Projects → geekish → Crap

geekish / Crap

Licence: mit
Composer Require Aliased Packages: define aliases for your favorite Composer packages.

Projects that are alternatives of or similar to Crap

Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+3180.23%)
Mutual labels:  utility, cli, composer
Musoq
Use SQL on various data sources
Stars: ✭ 252 (+193.02%)
Mutual labels:  utility, cli
Gitlab Cli
Create a merge request from command line in gitlab
Stars: ✭ 224 (+160.47%)
Mutual labels:  utility, cli
Remarshal
Convert between CBOR, JSON, MessagePack, TOML, and YAML
Stars: ✭ 421 (+389.53%)
Mutual labels:  utility, cli
Fselect
Find files with SQL-like queries
Stars: ✭ 3,103 (+3508.14%)
Mutual labels:  utility, cli
Fwd
🚂 The little forwarder that could
Stars: ✭ 203 (+136.05%)
Mutual labels:  utility, cli
Jql
A JSON Query Language CLI tool
Stars: ✭ 368 (+327.91%)
Mutual labels:  utility, cli
Telegram Messages Dump
Command-line tool to dump message history of a Telegram chat.
Stars: ✭ 96 (+11.63%)
Mutual labels:  utility, cli
Backslide
💦 CLI tool for making HTML presentations with Remark.js using Markdown
Stars: ✭ 679 (+689.53%)
Mutual labels:  utility, cli
Git Repo
Git-Repo: CLI utility to manage git services from your workspace
Stars: ✭ 818 (+851.16%)
Mutual labels:  utility, cli
Executor
Watch for file changes and then execute command. Very nice for test driven development.
Stars: ✭ 14 (-83.72%)
Mutual labels:  utility, cli
Thaw Carrots
Thaw carrots by warming up your laptop to a specific temperature
Stars: ✭ 120 (+39.53%)
Mutual labels:  utility, cli
Httpcat
httpcat is a simple utility for constructing raw HTTP requests on the command line.
Stars: ✭ 109 (+26.74%)
Mutual labels:  utility, cli
Npm Quick Run
Quickly run NPM script by prefix without typing the full name
Stars: ✭ 97 (+12.79%)
Mutual labels:  utility, cli
Unidump
hexdump(1) for Unicode data
Stars: ✭ 31 (-63.95%)
Mutual labels:  utility, cli
Haxor News
Browse Hacker News like a haxor: A Hacker News command line interface (CLI).
Stars: ✭ 3,342 (+3786.05%)
Mutual labels:  utility, cli
Novagram
An Object-Oriented PHP library for Telegram Bots
Stars: ✭ 112 (+30.23%)
Mutual labels:  cli, composer
Saws
A supercharged AWS command line interface (CLI).
Stars: ✭ 4,886 (+5581.4%)
Mutual labels:  utility, cli
Start Server And Test
Starts server, waits for URL, then runs test command; when the tests end, shuts down server
Stars: ✭ 879 (+922.09%)
Mutual labels:  utility, cli
Composify
Turn WordPress plugin zip files into git repositories, so that composer version constraints work properly.
Stars: ✭ 36 (-58.14%)
Mutual labels:  cli, composer

crap: Composer Require Aliased Packages

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Define aliases for your favorite packages, making usage as simple as crap require monolog.

Install

PHP 5.6+ or 7.0+ required.

Because using multiple global Composer packages can create dependency conflicts, I recommend using consolidation/cgr over composer global require:

cgr geekish/crap

If you don't mind descending into global dependency hell:

composer global require geekish/crap

Usage

To define your aliases (version constraints are optional):

crap alias monolog monolog/monolog:^1.21

To use your aliases:

crap require monolog
crap update monolog
crap remove monolog

To remove an alias:

crap unalias monolog

View a list of defined alias:

crap list

These commands simply find your aliases, and call the Composer commands with the real package names. If you provided a version constraint when defining your alias, crap will use this by default. You may provide a version constraint on the require and update commands; this will override any default.

The commands project, require, update, and remove all accept the same options/flags as the Composer commands that they call. For reference, see Composer's Commands documentation.

Why?

I'm lazy. I tried to create global shell aliases for packages that I used often. It worked, but if I typed out the full package name, I would get monolog/monolog/monolog/monolog. I also tried to write a Composer plugin, but there was no way to override the incoming package argument. So, I wrote crap.

Oh, the name? I was going to call it cra, and call the main class Crapp. Then I thought of the acronym, and it was just too good not to use.

Yes, it is totally inspired by Spongebob's POOP.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

After a composer install, to run the unit tests via phpunit:

composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].