-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 38f09df
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
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,16 @@ | ||
# Demacroable | ||
|
||
Illuminate components often depends on the "[macroable](https://github.com/illuminate/macroable)" (aka Monkey patching) package. | ||
This package replace the official `illuminate/macroable` package with an empty trait. | ||
|
||
This package makes the macroable trait empty and removes the possibility to monkey patch | ||
some illuminate components (using the `Macroable` trait) at runtime, forcing end users to | ||
compose (or inherit) with illuminate components in production or use mocking for tests. | ||
|
||
> ! Use at your own risk | ||
## Install | ||
|
||
``` | ||
composer req bafs/illuminate-demacroable | ||
``` |
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,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Illuminate\Support\Traits; | ||
|
||
trait Macroable | ||
{ | ||
} |
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,17 @@ | ||
{ | ||
"name": "bafs/illuminate-demacroable", | ||
"description": "The Demacroable package, to remove monkey patching from your codebase.", | ||
"license": "MIT", | ||
"require": { | ||
"php": "^8.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Illuminate\\Support\\": "" | ||
} | ||
}, | ||
"replace": { | ||
"illuminate/macroable": "*" | ||
}, | ||
"minimum-stability": "dev" | ||
} |