https://github.com/lorddashme/php-static-class-interface
A simple package that convert a service class into a static-like class.
https://github.com/lorddashme/php-static-class-interface
facade oop php static
Last synced: 3 months ago
JSON representation
A simple package that convert a service class into a static-like class.
- Host: GitHub
- URL: https://github.com/lorddashme/php-static-class-interface
- Owner: LordDashMe
- License: mit
- Created: 2018-08-08T08:22:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-01T16:10:17.000Z (over 2 years ago)
- Last Synced: 2025-03-27T00:13:11.747Z (4 months ago)
- Topics: facade, oop, php, static
- Language: PHP
- Size: 82 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Static Class Interface
A simple package that convert a service class into a static-like class.
[](https://packagist.org/packages/LordDashMe/php-static-class-interface) [](https://php.net/) [](https://coveralls.io/github/LordDashMe/php-static-class-interface?branch=master)
## Requirement(s)
- PHP version from 7.0.* up to latest.
## Install
### via Composer
- Use the command below to install the package via composer:
```txt
composer require lorddashme/php-static-class-interface
```### via Native Way
- You can also use this package without composer, just clone this repository and import all the important class:
```php
testService('ServiceClass'); // echo Hello World ServiceClass!// And we can now use the Service Class like a "static" class implementation.
ServiceClassFacade::testService('ServiceFacadeClass'); // echo Hello World ServiceFacadeClass!
```## License
This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).