Skip to content

Commit 17b97ac

Browse files
committed
Add Laravel Zero files
1 parent 3369f82 commit 17b97ac

22 files changed

Lines changed: 6553 additions & 0 deletions

.editorconfig

Lines changed: 16 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* text=auto eol=lf
2+
/.github export-ignore
3+
.scrutinizer.yml export-ignore
4+
BACKERS.md export-ignore
5+
CONTRIBUTING.md export-ignore
6+
CHANGELOG.md export-ignore

.gitignore

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

app/Commands/.gitkeep

Whitespace-only changes.

app/Commands/InitStack.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace App\Commands;
4+
5+
use LaravelZero\Framework\Commands\Command;
6+
7+
class InitStack extends Command
8+
{
9+
protected $signature = 'init';
10+
11+
protected $description = 'Initialize devstack to the current project';
12+
13+
public function handle()
14+
{
15+
$this->info('Cool');
16+
}
17+
}

app/Commands/InspireCommand.php

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?php
2+
3+
namespace App\Commands;
4+
5+
use Illuminate\Console\Scheduling\Schedule;
6+
use LaravelZero\Framework\Commands\Command;
7+
use function Termwind\{render};
8+
9+
class InspireCommand extends Command
10+
{
11+
/**
12+
* The signature of the command.
13+
*
14+
* @var string
15+
*/
16+
protected $signature = 'inspire {name=Artisan}';
17+
18+
/**
19+
* The description of the command.
20+
*
21+
* @var string
22+
*/
23+
protected $description = 'Display an inspiring quote';
24+
25+
/**
26+
* Execute the console command.
27+
*/
28+
public function handle(): void
29+
{
30+
render(<<<'HTML'
31+
<div class="py-1 ml-2">
32+
<div class="px-1 bg-blue-300 text-black">Laravel Zero</div>
33+
<em class="ml-1">
34+
Simplicity is the ultimate sophistication.
35+
</em>
36+
</div>
37+
HTML);
38+
}
39+
40+
/**
41+
* Define the command's schedule.
42+
*/
43+
public function schedule(Schedule $schedule): void
44+
{
45+
// $schedule->command(static::class)->everyMinute();
46+
}
47+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
public function boot(): void
13+
{
14+
//
15+
}
16+
17+
/**
18+
* Register any application services.
19+
*/
20+
public function register(): void
21+
{
22+
//
23+
}
24+
}

bootstrap/app.php

Lines changed: 50 additions & 0 deletions
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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
"exclude-dev-files": false
19+
}

builds/canary

17.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)