Skip to content

Commit 3a02af1

Browse files
committed
Merge branch 'dev'
2 parents 2b3bc63 + 53ffc6b commit 3a02af1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3684
-3171
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ _ide_helper_models.php
1111
.php_cs.cache
1212
.php-cs-fixer.cache
1313
/.vscode
14-
/coverage
14+
/coverage
15+
/cache

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ Install globally
2525

2626
## 📝 Usage
2727

28+
1. Create a Github or Gitlab repository for your package
29+
2. Pull the package to your local machine
30+
3. Run `packager new` command
31+
4. Enter required information
32+
5. Install the package with `composer install` command
33+
6. Start developing your package
34+
2835
### Create a package
2936

3037
`packager new` or `packager n`

bin/packager

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
11
#!/usr/bin/env php
22
<?php
33

4-
if (php_sapi_name() !== 'cli') {
5-
exit;
6-
}
7-
84
require __DIR__ . '/../vendor/autoload.php';
95

10-
use Minicli\App;
11-
use Minicli\Exception\CommandNotFoundException;
12-
13-
$app = new App([
14-
'app_path' => __DIR__ . '/../src/Command',
15-
'theme' => '',
16-
'debug' => true,
17-
]);
6+
use Symfony\Component\Console\Application;
7+
use LaravelReady\Packager\Commands\NewPackageCommand;
188

19-
try {
20-
$app->runCommand($argv);
21-
} catch (CommandNotFoundException $notFoundException) {
22-
$app->getPrinter()->error("Command Not Found.");
9+
$application = new Application();
2310

24-
return 1;
25-
} catch (Exception $exception) {
26-
if ($app->config->debug) {
27-
$app->getPrinter()->error("An error occurred:");
28-
$app->getPrinter()->error($exception->getMessage());
29-
}
30-
31-
return 1;
32-
}
11+
$application->addCommands([
12+
new NewPackageCommand(),
13+
]);
3314

34-
return 0;
15+
$application->run();

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@
2525
}
2626
},
2727
"require": {
28-
"php": "^8.0 || ^8.1",
29-
"minicli/minicli": "^3.2.0",
30-
"minicli/command-help": "^0.1.0",
31-
"illuminate/support": "^8.8 || ^v9.0",
28+
"php": "^8.1",
29+
"illuminate/support": "^v9.9.0",
3230
"illuminate/filesystem": "^8.8 || ^v9.0",
3331
"nikic/php-parser": "^v4.14.0",
34-
"nesbot/carbon": "^2.59.1"
32+
"nesbot/carbon": "^2.59.1",
33+
"symfony/console": "^6.2",
34+
"nunomaduro/termwind": "^1.14",
35+
"illuminate/view": "9.0"
3536
},
3637
"scripts": {
3738
"test": "DB_DATABASE=:memory: vendor/bin/pest --colors=always --parallel",
@@ -59,5 +60,5 @@
5960
"phpunit/phpunit": "^9.5.20",
6061
"friendsofphp/php-cs-fixer": "^3.10"
6162
},
62-
"minimum-stability": "dev"
63+
"minimum-stability": "stable"
6364
}

0 commit comments

Comments
 (0)