PHPackages                             anujpratap/create-cscart-addon - 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. [CLI &amp; Console](/categories/cli)
4. /
5. anujpratap/create-cscart-addon

ActiveLibrary[CLI &amp; Console](/categories/cli)

anujpratap/create-cscart-addon
==============================

CLI tool to scaffold CS-Cart addons

v1.0.2(5mo ago)04MITPHPPHP &gt;=8.0

Since Jan 9Pushed 5mo agoCompare

[ Source](https://github.com/AnujPratap-96/create-cscart-addon)[ Packagist](https://packagist.org/packages/anujpratap/create-cscart-addon)[ RSS](/packages/anujpratap-create-cscart-addon/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

🚀 Create CS-Cart Addon
======================

[](#-create-cs-cart-addon)

A **PHP CLI tool** to quickly scaffold a **CS-Cart addon** with a correct folder structure, namespaces, and boilerplate files.

> No Node.js required.
> Works on **Windows**, **Linux**, and **macOS**.

---

✨ Features
----------

[](#-features)

- 📦 Generates CS-Cart–compatible addon structure
- 🧩 PSR-4 autoloading
- 🧠 Proper namespaces based on addon name
- 🛡 Validates addon name (`letters, numbers, underscore`)
- ⚡ Fast CLI execution
- 🌍 Cross-platform (Windows / Linux / macOS)

---

📁 Generated Structure
---------------------

[](#-generated-structure)

```
my_addon/
├── app/
│   └── addons/
│       └── my_addon/
│           ├── controllers/
│           ├── models/
│           ├── schema/
│           ├── src/
│           │   ├── HookHandlers/
│           │   ├── Bootstrap.php
│           │   ├── Installer.php
│           │   └── ServiceProvider.php
│           └── addon.xml
├── design/
│   └── templates/
│       └── addons/
│           └── my_addon/
└── var/
    └── langs/
        └── addons/

```

---

📦 Installation
--------------

[](#-installation)

### ✅ Option 1: Install globally via Composer (recommended)

[](#-option-1-install-globally-via-composer-recommended)

```
composer global require yourname/create-cscart-addon
```

Make sure Composer global bin is in your PATH:

```
# Linux / macOS
export PATH="$HOME/.composer/vendor/bin:$PATH"

# Windows (add manually)
C:\Users\YourUser\AppData\Roaming\Composer\vendor\bin
```

---

### ✅ Option 2: Local usage (no global install)

[](#-option-2-local-usage-no-global-install)

```
php bin/create-cscart-addon my_addon
```

---

▶️ Usage
--------

[](#️-usage)

```
create-cscart-addon price_update
```

Or (Windows / local):

```
php create-cscart-addon.php price_update
```

---

🧪 Validation Rules
------------------

[](#-validation-rules)

### ✔ Allowed

[](#-allowed)

```
price_update
my_addon_123

```

### ❌ Not allowed

[](#-not-allowed)

```
price-update
price update
price@update

```

---

🧩 Files Generated
-----------------

[](#-files-generated)

### `addon.xml`

[](#addonxml)

- Autoload (PSR-4)
- Bootstrap
- Installer
- Active status

### `Bootstrap.php`

[](#bootstrapphp)

- Registers service provider
- Hook handler support

### `Installer.php`

[](#installerphp)

- Install / uninstall lifecycle
- CS-Cart compliant

### `ServiceProvider.php`

[](#serviceproviderphp)

- Dependency container support (Pimple)

---

🖥 Platform Notes
----------------

[](#-platform-notes)

### Windows

[](#windows)

- No `chmod` required
- Composer generates `.bat` automatically

### Linux / macOS

[](#linux--macos)

```
chmod +x bin/create-cscart-addon
```

---

🛠 Requirements
--------------

[](#-requirements)

- PHP **8.0+**
- Composer
- CS-Cart **4.x+**

---

🗺 Roadmap
---------

[](#-roadmap)

- Interactive mode
- `--force` overwrite flag
- Auto-detect CS-Cart root
- Hook handler generator
- Unit tests
- Symfony Console integration

---

🤝 Contributing
--------------

[](#-contributing)

PRs are welcome.

1. Fork the repository
2. Create a feature branch
3. Submit a pull request

---

📄 License
---------

[](#-license)

MIT License

---

⭐ Why this tool?
----------------

[](#-why-this-tool)

CS-Cart addon development lacks a **standard scaffold generator**. This tool brings **Laravel-level developer experience (DX)** to CS-Cart.

---

```

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance70

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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 ~1 days

Total

3

Last Release

172d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/160201596?v=4)[Anuj Pratap Singh](/maintainers/AnujPratap-96)[@AnujPratap-96](https://github.com/AnujPratap-96)

---

Top Contributors

[![AnujPratap-96](https://avatars.githubusercontent.com/u/160201596?v=4)](https://github.com/AnujPratap-96 "AnujPratap-96 (1 commits)")

### Embed Badge

![Health badge](/badges/anujpratap-create-cscart-addon/health.svg)

```
[![Health](https://phpackages.com/badges/anujpratap-create-cscart-addon/health.svg)](https://phpackages.com/packages/anujpratap-create-cscart-addon)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)[thettler/laravel-console-toolkit

This Package provides some usefully console features like the attribute syntax for arguments and options, validation, auto ask and casting.

324.1k](/packages/thettler-laravel-console-toolkit)

PHPackages © 2026

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