BrianHenryIE / strauss

Prefix PHP namespaces and classnames to allow multiple versions of libraries to exist without conflict.
https://brianhenryie.github.io/strauss/
MIT License
143 stars 23 forks source link

`use Prefixed_GlobalClass as ClassAlias` #108

Closed BrianHenryIE closed 1 month ago

BrianHenryIE commented 6 months ago
use Parsedown as MarkdownParser;

class MyClass {
  public function myFunction() {
    $parsedown = new MarkdownParser();
  }
}
{
  "name": "strauss/issue",
  "require": {
    "erusev/parsedown": "*"
  }
}
BrianHenryIE commented 1 month ago

https://github.com/BrianHenryIE/strauss/commit/d04194116cd6c573a046b31f8cda9b9c11973278