PHPackages                             diego-ninja/cosmic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. diego-ninja/cosmic

ActiveLibrary[Framework](/categories/framework)

diego-ninja/cosmic
==================

The ultimate php framework for building CLI applications.

v1.0.5(1y ago)6191[1 issues](https://github.com/diego-ninja/cosmic/issues)[1 PRs](https://github.com/diego-ninja/cosmic/pulls)MITPHPPHP ^8.2

Since Dec 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/diego-ninja/cosmic)[ Packagist](https://packagist.org/packages/diego-ninja/cosmic)[ Fund](https://paypal.me/diegorin)[ Fund](https://ko-fi.com/diegoninja)[ RSS](/packages/diego-ninja-cosmic/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (35)Versions (9)Used By (0)

[![](./assets/logo-portrait.png)](./assets/logo-portrait.png)

[![Latest Version on Packagist](https://camo.githubusercontent.com/042726811b0234aab7f6ebb02c6fdce7f36aec0b91894b0e2853efaa02142ebf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646965676f2d6e696e6a612f636f736d69632e7376673f7374796c653d666c617426636f6c6f723d626c7565)](https://packagist.org/packages/diego-ninja/cosmic)[![Total Downloads](https://camo.githubusercontent.com/8796b5bea59e6ac9e15301d0e0d5304596f4028f686eeed7c32a32ae87bb8b4b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646965676f2d6e696e6a612f636f736d69632e7376673f7374796c653d666c617426636f6c6f723d626c7565)](https://packagist.org/packages/diego-ninja/cosmic)[![PHP Version](https://camo.githubusercontent.com/9db78987a7d05d3147802071748b905429ca68f2bc9f41f69da247b24c722d86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646965676f2d6e696e6a612f636f736d69632e7376673f7374796c653d666c617426636f6c6f723d626c7565)](https://camo.githubusercontent.com/9db78987a7d05d3147802071748b905429ca68f2bc9f41f69da247b24c722d86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646965676f2d6e696e6a612f636f736d69632e7376673f7374796c653d666c617426636f6c6f723d626c7565)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![wakatime](https://camo.githubusercontent.com/820985e495ebab7d9446938b93263f6d2b61467c9411955fe8d060aa57a8a348/68747470733a2f2f77616b6174696d652e636f6d2f62616467652f757365722f62643635663035352d633966332d346637332d393261612d3363393831306637306363332f70726f6a6563742f30313863306434632d353532352d343932392d613063332d6461363864646433343438662e737667)](https://wakatime.com/badge/user/bd65f055-c9f3-4f73-92aa-3c9810f70cc3/project/018c0d4c-5525-4929-a0c3-da68ddd3448f)[![GitHub last commit](https://camo.githubusercontent.com/8441d98cabb4359512bb28833d265ca2c711877fbb0b38ecbb259bcbeb7453e0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f646965676f2d6e696e6a612f636f736d69633f636f6c6f723d626c7565)](https://camo.githubusercontent.com/8441d98cabb4359512bb28833d265ca2c711877fbb0b38ecbb259bcbeb7453e0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f646965676f2d6e696e6a612f636f736d69633f636f6c6f723d626c7565)[![PHPStan Level 8](https://camo.githubusercontent.com/7ce03de83528f63d2e10e4701300f35c5bf253fc030ac0ecefa91b258b5511c0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d626c75652e737667)](https://github.com/diego-ninja/cosmic/blob/main/.github/workflows/static-code-analysis.yml)

Cosmic is, in one hand a PHP framework for building CLI applications, and in the other hand a CLI application for building PHP applications. Using Cosmic you can generate a fully functional PHP application and start coding right away using the Cosmic framework.

Cosmic is focused on eye-candy, rapid application development and ease of use. In your commands you can use nice spinners and tables, send os based notifications or develop your own themes to customize the look and feel of your application.

Cosmic needs an ANSI compatible terminal to work properly and is tested and fully working on 🐧 Linux.

This is a work in progress, and it is not ready for production use. However, you can use it to build your own CLI applications. Help is needed to improve the project, so if you are interested in contributing, please read the [contributing guide](./docs/contributing.md).

Please refer to the [documentation](https://github.com/diego-ninja/cosmic-docs) (very WIP!) for getting started to develop your own CLI applications.

🙏 Credits
---------

[](#-credits)

This project is developed and maintained by 🥷 [Diego Rin](https://diego.ninja) in his free time.

Special thanks to:

- [Symfony Console](https://symfony.com/doc/current/components/console.html) for providing the low-level console component used in this project.
- [Termwind](https://github.com/nunomaduro/termwind) for providing the terminal styling capabilities.
- [JoliNotif](https://github.com/jolicode/JoliNotif) for providing the notification capabilities.
- [Box](https://box-project.github.io/box/) for enabling us to package the application into a PHAR file.
- [Freepik@Flaticons](https://www.flaticon.es/iconos-gratis/cohete) for the amazing rocket icon used in the logo.
- All the contributors and testers who have helped to improve this project through their contributions.

If you find this project useful, please consider giving it a ⭐ on GitHub!

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~34 days

Recently: every ~43 days

Total

6

Last Release

697d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dff5b0a76de3d555cb236c400384058ba23982bce2e859cc1b2f0c1f0161a3e6?d=identicon)[diego.ninja](/maintainers/diego.ninja)

---

Top Contributors

[![diego-ninja](https://avatars.githubusercontent.com/u/78662279?v=4)](https://github.com/diego-ninja "diego-ninja (37 commits)")

---

Tags

clicommand-line-toolconsoleconsole-applicationframeworkphp8radsatis-enabledterminalterminal-basedcliconsolecommand-lineterminalframeworkshellcommandapplicationtablethemesspinner

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/diego-ninja-cosmic/health.svg)

```
[![Health](https://phpackages.com/badges/diego-ninja-cosmic/health.svg)](https://phpackages.com/packages/diego-ninja-cosmic)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[mnapoli/silly

Silly CLI micro-framework based on Symfony Console

93110.5M128](/packages/mnapoli-silly)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
