PHPackages                             skavys/harbor-crane - 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. skavys/harbor-crane

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

skavys/harbor-crane
===================

Harbor Generator commands

v1.0.1(3y ago)164[1 PRs](https://github.com/skavys/harbor-crane/pulls)MITPHPPHP ^8.1

Since Aug 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/skavys/harbor-crane)[ Packagist](https://packagist.org/packages/skavys/harbor-crane)[ Docs](https://github.com/skavys/harbor-crane)[ RSS](/packages/skavys-harbor-crane/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (6)Used By (0)

 [![build](https://github.com/skavys/harbor-crane/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/skavys/harbor-crane/actions/workflows/build.yml "build") [![download](https://camo.githubusercontent.com/b2f53f0e201134bda5172e47855819326db63a7720720d6c42a5b9b60fac9fd1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736b617679732f686172626f722d6372616e653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/skavys/harbor-crane "download") [![license](https://camo.githubusercontent.com/d1bc7e6ceb20f2817b20755f70d25e89eaf19f4df108b11043b40948dfd4877e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736b617679732f686172626f722d6372616e653f7374796c653d666c61742d737175617265)](https://github.com/skavys/harbor-crane/blob/stat/LICENSE "license") [![release](https://camo.githubusercontent.com/81f6618067c656c8ad7fadf469b9ea7620c694f3f2631b794593cd77ff8c5ae2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f736b617679732f686172626f722d6372616e653f646973706c61795f6e616d653d74616726736f72743d73656d766572267374796c653d666c61742d737175617265)](https://github.com/skavys/harbor-crane/releases "release") [![php](https://camo.githubusercontent.com/902efb53d63c47a5621455074a68f08ad8bf80bfcffcf93c707a991084160122/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736b617679732f686172626f722d6372616e653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/skavys/harbor-crane "php")

Harbor Generator commands
=========================

[](#harbor-generator-commands)

Introduction
------------

[](#introduction)

**Harbor Crane** is a tool to generate files and directories for [Porto](https://github.com/Mahmoudz/Porto) architecture pattern.

Installation
------------

[](#installation)

You may install `Harbor Crane` via Composer:

```
composer require skavys/harbor-crane --dev
```

Alternatively, `Harbor Crane` has standalone version distributed as `PHAR` archive. You may download `phar` version in `Assets` section of each [release](https://github.com/skavys/harbor-crane/releases).

Configuration
-------------

[](#configuration)

Each command has following *global* options:

- `--config` - loads configuration from a `JSON` file;
- `--ship` - relative path to the `Ship` directory (default is `src/Ship`);
- `--containers` - relative path to the `Containers` directory (default is `src/Containers`);
- `--src-namespace` - Porto root namespace (default is `App`).

Available Commands
------------------

[](#available-commands)

Run `vendor/bin/harbor-crane` to see the list of available commands.

Usage
-----

[](#usage)

Run following command to create `AccountSection` section:

```
./vendor/bin/harbor-crane make:section AccountSection
```

You can create section and containers inside this section in one step:

```
./vendor/bin/harbor-crane make:section AccountSection --container-name=User --container-name=Profile
```

Above command will create `AccountSection` section and two containers in it: `User` and `Profile`.

Run following command to create `Product` container:

```
./vendor/bin/harbor-crane make:container Product
```

Above command will create `Product` container in `containers` directory (`src/Containers` by default).

You can create section and container in it in one step:

```
./vendor/bin/harbor-crane make:container Product --section=ProductSection
```

Above command will create `ProductSection` section if it doesn't exist and create `Product` container in this section.

Configuration file
------------------

[](#configuration-file)

If your global options differ from default ones and you don't want to provide them for each command run, you can create `JSON` configuration file. By default, the name of configuration file is `harbor-crane.json` and it should be located in the root directory of your project:

```
{
    "ship": "app/Ship",
    "containers": "app/Containers",
    "src-namespace": "App"
}
```

Contributing
------------

[](#contributing)

Thank you for considering contributing to Harbor Crane! You can read the contribution guide [here](CONTRIBUTING.md).

Code of Conduct
---------------

[](#code-of-conduct)

Please review and abide by the [Code of Conduct](CODE_OF_CONDUCT.md).

Credits
-------

[](#credits)

- [Dzianis Kotau](https://github.com/Jampire)
- [All Contributors](https://github.com/skavys/harbor-crane/graphs/contributors)

License
-------

[](#license)

Harbor Crane is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

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

Total

3

Last Release

1362d ago

Major Versions

v0.0.1 → v1.0.02022-08-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f09a0cad147e9ffb0ab22e956810ce39347a4d04600f6c337cd9c52f84edf0b?d=identicon)[Jampire](/maintainers/Jampire)

---

Top Contributors

[![Jampire](https://avatars.githubusercontent.com/u/686954?v=4)](https://github.com/Jampire "Jampire (20 commits)")

---

Tags

cligeneratorPortocommandsharborskavys

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/skavys-harbor-crane/health.svg)

```
[![Health](https://phpackages.com/badges/skavys-harbor-crane/health.svg)](https://phpackages.com/packages/skavys-harbor-crane)
```

###  Alternatives

[aplus/cli

Aplus Framework CLI Library

2301.7M6](/packages/aplus-cli)[timwassenburg/laravel-service-generator

Generate Laravel services

104233.1k2](/packages/timwassenburg-laravel-service-generator)[maximebf/consolekit

Library to create command line utilities

114104.4k9](/packages/maximebf-consolekit)[timwassenburg/laravel-repository-generator

Generate Laravel repositories

2116.9k1](/packages/timwassenburg-laravel-repository-generator)[timwassenburg/laravel-artisan-extender

A collection of generators for Laravel

111.4k](/packages/timwassenburg-laravel-artisan-extender)

PHPackages © 2026

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