generated from glhd/laravel-package-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
150 additions
and
87 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Glhd\AnsiPants; | ||
|
||
use Glhd\AnsiPants\Support\AnsiParser; | ||
use Stringable; | ||
|
||
class AnsiString implements Stringable | ||
{ | ||
protected array $chars = []; | ||
|
||
protected array $flags = []; | ||
|
||
public function __construct(string $input) | ||
{ | ||
$parser = new AnsiParser($input); | ||
[$this->chars, $this->flags] = $parser->parse(); | ||
} | ||
|
||
public function __toString(): string | ||
{ | ||
// TODO: Implement __toString() method. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Glhd\AnsiPants\Support; | ||
|
||
use Illuminate\Contracts\Foundation\Application; | ||
use Illuminate\Support\Facades\Blade; | ||
use Illuminate\Support\ServiceProvider; | ||
|
||
class AnsiPantsServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
} | ||
|
||
public function register() | ||
{ | ||
require_once __DIR__.'/helpers.php'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Glhd\AnsiPants\Support; | ||
|
||
use Glhd\AnsiPants\AnsiString; | ||
use Illuminate\Support\ServiceProvider; | ||
|
||
class AnsiParser | ||
{ | ||
public function __construct( | ||
protected string $input | ||
) { | ||
} | ||
|
||
public function parse(): array | ||
{ | ||
// FIXME | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Glhd\AnsiPants\Support\Facades; | ||
|
||
use Illuminate\Contracts\Foundation\Application; | ||
use Illuminate\Support\Facades\Blade; | ||
use Illuminate\Support\Facades\Facade; | ||
use Illuminate\Support\ServiceProvider; | ||
|
||
class Ansi extends Facade | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters