PHPackages                             ybscript/yb-job - 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. ybscript/yb-job

ActiveLibrary[Framework](/categories/framework)

ybscript/yb-job
===============

The PHP Script Framework.

1.0.0(7y ago)231MITPHP

Since Jan 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ybscript/yb-job)[ Packagist](https://packagist.org/packages/ybscript/yb-job)[ RSS](/packages/ybscript-yb-job/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

yb-job
======

[](#yb-job)

a php script framework.

This framework support MC(model and controller)/Command/Closure.

You can register yourself component in "/bootstrap/app.php".Next,you can use $app mount component to coding;

\[1\] Installation tutorial :

(1) first method:

1、clone this project:

```
$ git clone xxxxxxxxxxxxxxxxxxxx

```

2、load vendor：

```
$ composer install

```

3、cd root path:

```
$ cd yb-job

```

4、init project:

```
$ php init

```

(2) second method:

1、create project:

```
$ composer create-project ybscript/yb-job your-project-name

```

2、init project:

```
$ cd your-project-name
$ php init

```

Go here, this project is init.

\[2\] Here are some usages:

(1)、View all existing scripts:

```
$ php ybTask list

```

or

```
$ php ybTask

```

(2)、Script service operation:

start:

```
$ php ybTask -p start

```

stop:

```
$ php ybTask -p stop

```

flash:

```
$ php ybTask -p flash

```

Tips:

The flash operation is very important!

When you add the script configuration,You need to perform it;

\[3\] Simple example:

1、use closure(/console/closureFiles/closure/example.php):

```
$console->command('demo', function (\Inhere\Console\IO\Input $in, \Inhere\Console\IO\Output $out) {
    $cmd = $in->getCommand();

    $out->info('hello, this is a test command: ' . $cmd);
}, 'this is message for the command');

```

2、use command(/console/commands/test/ExampleCommand.php):

```
class ExampleCommand extends Command
{
    protected static $name = 'example';

    protected static $description = 'this is test example';

    /**
     * do execute command
     * example php ybTask example --param='hello,this param'
     * @param  Input $input
     * @param  Output $output
     * @return int|mixed
     */
    protected function execute($input, $output)
    {
        // TODO: Implement execute() method.

        $output->write('hello, this in example command');
        //get param
        print_r($input->getOpts());
        $this->write($input->getOpt('param'));
    }
}

```

3、use controller(/console/controllers/site/SiteController.php):

```
class SiteController extends BaseController
{
    protected static $name = 'site';

    protected static $description = 'this is site example';

    /**
     * this is test command
     * example php ybTask site:test --param='hello,this param'
     * use getOpt() / boolOpt() /
     */
    public function testCommand()
    {
        var_dump(self::annotationVars());

        $this->write('hello,this is site!');
        //get param
        print_r($this->getInput()->getOpts());
        $this->write($this->getOpt('param'));
    }
}

```

\[4\] Configuring a new script:

add a new script to "/config/task/handle.php";

you can choose the mode of swoole/crontab/nohup;

the mode of swoole can support millisecond;

\[5\] deep study:

console:

swoole:[www.swoole.com](http://www.swoole.com)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Unknown

Total

1

Last Release

2671d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc64937253887b08941665095cf56416c7d33b1ef5f1d02f3e50f57eb1c57bcb?d=identicon)[yb](/maintainers/yb)

---

Top Contributors

[![ykabps1314](https://avatars.githubusercontent.com/u/9278120?v=4)](https://github.com/ykabps1314 "ykabps1314 (38 commits)")

### Embed Badge

![Health badge](/badges/ybscript-yb-job/health.svg)

```
[![Health](https://phpackages.com/badges/ybscript-yb-job/health.svg)](https://phpackages.com/packages/ybscript-yb-job)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[shopware/platform

The Shopware e-commerce core

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

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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