Skip to content

Commit 0b102bf

Browse files
committed
Initial commit.
0 parents  commit 0b102bf

19 files changed

+4520
-0
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_style = space
16+
indent_size = 2

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text=auto
2+
/.github export-ignore
3+
.styleci.yml export-ignore
4+
.scrutinizer.yml export-ignore
5+
BACKERS.md export-ignore
6+
CONTRIBUTING.md export-ignore
7+
CHANGELOG.md export-ignore

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/vendor
2+
/.idea
3+
/.vscode
4+
/.vagrant
5+
.phpunit.result.cache

README.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<p align="center">
2+
<img title="Laravel Zero" height="100" src="https://raw.githubusercontent.com/laravel-zero/docs/master/images/logo/laravel-zero-readme.png" />
3+
</p>
4+
5+
<p align="center">
6+
<a href="https://github.com/laravel-zero/framework/actions"><img src="https://img.shields.io/github/workflow/status/laravel-zero/framework/Continuous%20Integration.svg" alt="Build Status"></img></a>
7+
<a href="https://scrutinizer-ci.com/g/laravel-zero/framework"><img src="https://img.shields.io/scrutinizer/g/laravel-zero/framework.svg" alt="Quality Score"></img></a>
8+
<a href="https://packagist.org/packages/laravel-zero/framework"><img src="https://poser.pugx.org/laravel-zero/framework/d/total.svg" alt="Total Downloads"></a>
9+
<a href="https://packagist.org/packages/laravel-zero/framework"><img src="https://poser.pugx.org/laravel-zero/framework/v/stable.svg" alt="Latest Stable Version"></a>
10+
<a href="https://packagist.org/packages/laravel-zero/framework"><img src="https://poser.pugx.org/laravel-zero/framework/license.svg" alt="License"></a>
11+
</p>
12+
13+
<h4> <center>This is a <bold>community project</bold> and not an official Laravel one </center></h4>
14+
15+
Laravel Zero was created by, and is maintained by [Nuno Maduro](https://github.com/nunomaduro), and is a micro-framework that provides an elegant starting point for your console application. It is an **unofficial** and customized version of Laravel optimized for building command-line applications.
16+
17+
- Built on top of the [Laravel](https://laravel.com) components.
18+
- Optional installation of Laravel [Eloquent](https://laravel-zero.com/docs/database/), Laravel [Logging](https://laravel-zero.com/docs/logging/) and many others.
19+
- Supports interactive [menus](https://laravel-zero.com/docs/build-interactive-menus/) and [desktop notifications](https://laravel-zero.com/docs/send-desktop-notifications/) on Linux, Windows & MacOS.
20+
- Ships with a [Scheduler](https://laravel-zero.com/docs/task-scheduling/) and a [Standalone Compiler](https://laravel-zero.com/docs/build-a-standalone-application/).
21+
- Integration with [Collision](https://github.com/nunomaduro/collision) - Beautiful error reporting
22+
23+
------
24+
25+
## Documentation
26+
27+
For full documentation, visit [laravel-zero.com](https://laravel-zero.com/).
28+
29+
## Support the development
30+
**Do you like this project? Support it by donating**
31+
32+
- PayPal: [Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L)
33+
- Patreon: [Donate](https://www.patreon.com/nunomaduro)
34+
35+
## License
36+
37+
Laravel Zero is an open-source software licensed under the [MIT license](https://github.com/laravel-zero/laravel-zero/blob/stable/LICENSE.md).

app/Commands/.gitkeep

Whitespace-only changes.

app/Commands/InspiringCommand.php

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
3+
namespace App\Commands;
4+
5+
use Illuminate\Console\Scheduling\Schedule;
6+
use LaravelZero\Framework\Commands\Command;
7+
8+
class InspiringCommand extends Command
9+
{
10+
/**
11+
* The signature of the command.
12+
*
13+
* @var string
14+
*/
15+
protected $signature = 'inspiring {name=Artisan}';
16+
17+
/**
18+
* The description of the command.
19+
*
20+
* @var string
21+
*/
22+
protected $description = 'Display an inspiring quote';
23+
24+
/**
25+
* Execute the console command.
26+
*
27+
* @return mixed
28+
*/
29+
public function handle()
30+
{
31+
$this->info('Simplicity is the ultimate sophistication.');
32+
}
33+
34+
/**
35+
* Define the command's schedule.
36+
*
37+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
38+
* @return void
39+
*/
40+
public function schedule(Schedule $schedule)
41+
{
42+
// $schedule->command(static::class)->everyMinute();
43+
}
44+
}

app/Providers/AppServiceProvider.php

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
namespace App\Providers;
4+
5+
use Illuminate\Support\ServiceProvider;
6+
7+
class AppServiceProvider extends ServiceProvider
8+
{
9+
/**
10+
* Bootstrap any application services.
11+
*
12+
* @return void
13+
*/
14+
public function boot()
15+
{
16+
//
17+
}
18+
19+
/**
20+
* Register any application services.
21+
*
22+
* @return void
23+
*/
24+
public function register()
25+
{
26+
//
27+
}
28+
}

bootstrap/app.php

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
3+
/*
4+
|--------------------------------------------------------------------------
5+
| Create The Application
6+
|--------------------------------------------------------------------------
7+
|
8+
| The first thing we will do is create a new Laravel application instance
9+
| which serves as the "glue" for all the components of Laravel, and is
10+
| the IoC container for the system binding all of the various parts.
11+
|
12+
*/
13+
14+
$app = new LaravelZero\Framework\Application(
15+
dirname(__DIR__)
16+
);
17+
18+
/*
19+
|--------------------------------------------------------------------------
20+
| Bind Important Interfaces
21+
|--------------------------------------------------------------------------
22+
|
23+
| Next, we need to bind some important interfaces into the container so
24+
| we will be able to resolve them when needed. The kernels serve the
25+
| incoming requests to this application from both the web and CLI.
26+
|
27+
*/
28+
29+
$app->singleton(
30+
Illuminate\Contracts\Console\Kernel::class,
31+
LaravelZero\Framework\Kernel::class
32+
);
33+
34+
$app->singleton(
35+
Illuminate\Contracts\Debug\ExceptionHandler::class,
36+
Illuminate\Foundation\Exceptions\Handler::class
37+
);
38+
39+
/*
40+
|--------------------------------------------------------------------------
41+
| Return The Application
42+
|--------------------------------------------------------------------------
43+
|
44+
| This script returns the application instance. The instance is given to
45+
| the calling script so we can separate the building of the instances
46+
| from the actual running of the application and sending responses.
47+
|
48+
*/
49+
50+
return $app;

box.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"chmod": "0755",
3+
"directories": [
4+
"app",
5+
"bootstrap",
6+
"config",
7+
"vendor"
8+
],
9+
"files": [
10+
"composer.json"
11+
],
12+
"exclude-composer-files": false,
13+
"compression": "GZ",
14+
"compactors": [
15+
"KevinGH\\Box\\Compactor\\Php",
16+
"KevinGH\\Box\\Compactor\\Json"
17+
]
18+
}

composer.json

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "laravel-zero/laravel-zero",
3+
"description": "The Laravel Zero Framework.",
4+
"keywords": ["framework", "laravel", "laravel zero", "console", "cli"],
5+
"homepage": "https://laravel-zero.com",
6+
"type": "project",
7+
"license": "MIT",
8+
"support": {
9+
"issues": "https://github.com/laravel-zero/laravel-zero/issues",
10+
"source": "https://github.com/laravel-zero/laravel-zero"
11+
},
12+
"authors": [
13+
{
14+
"name": "Nuno Maduro",
15+
"email": "[email protected]"
16+
}
17+
],
18+
"require": {
19+
"php": "^7.2.5",
20+
"laravel-zero/framework": "^7.0"
21+
},
22+
"require-dev": {
23+
"mockery/mockery": "^1.3.1",
24+
"phpunit/phpunit": "^8.5"
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"App\\": "app/"
29+
}
30+
},
31+
"autoload-dev": {
32+
"psr-4": {
33+
"Tests\\": "tests/"
34+
}
35+
},
36+
"config": {
37+
"preferred-install": "dist",
38+
"sort-packages": true,
39+
"optimize-autoloader": true
40+
},
41+
"scripts": {
42+
"post-create-project-cmd": [
43+
"@php application app:rename"
44+
]
45+
},
46+
"minimum-stability": "dev",
47+
"prefer-stable": true,
48+
"bin": ["takeout"]
49+
}

0 commit comments

Comments
 (0)