https://github.com/autoframe/class-dependency
PHP class, interface and trait dependency static reflection all in one class
https://github.com/autoframe/class-dependency
Last synced: about 1 year ago
JSON representation
PHP class, interface and trait dependency static reflection all in one class
- Host: GitHub
- URL: https://github.com/autoframe/class-dependency
- Owner: autoframe
- License: mit
- Created: 2023-05-25T20:36:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T22:47:01.000Z (about 3 years ago)
- Last Synced: 2025-02-18T01:40:22.660Z (over 1 year ago)
- Language: PHP
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Autoframe is a low level framework that is oriented on SOLID flexibility
[](https://github.com/autoframe/class-dependency/actions?query=branch:main)
[](https://opensource.org/licenses/MIT)

[](https://packagist.org/packages/autoframe/class-dependency)
*Autoframe PHP dependency resolver for classes, interfaces and traits using static reflection and all in one class*
Namespace\Class:
- Autoframe\ClassDependency\AfrClassDependency
Static methods:
- public static function getClassInfo(mixed $obj_sFQCN): AfrClassDependency;
- public static function clearClassInfo(mixed $obj_sFQCN): bool;
- public static function isSkipped(mixed $obj_sFQCN): bool;
- public static function getDependencyInfo(): array;
- public static function clearDependencyInfo(): void;
- public static function getDebugFatalError(): array;
- public static function clearDebugFatalError(): void;
- public static function flush(): void;
- public static function setSkipClassInfo(array $aFQCN, bool $bMergeWithExisting = false): array;
- public static function setSkipNamespaceInfo(array $aNamespaces, bool $bMergeWithExisting = false): array;
- public static function getSkipClassInfo(): array;
- public static function getSkipNamespaceInfo(): array;
Instance methods:
- public function getType(): string;
- public function getAllDependencies(): array;
- public function getClassName(): string;
- public function __toString(): string;
- public function getParents(): array;
- public function getTraits(): array;
- public function getInterfaces(): array;
- public function isClass(): bool;
- public function isTrait(): bool;
- public function isInterface(): bool;
- public function isEnum(): bool;
- public function isAbstract(): bool;
- public function isInstantiable(): bool;
- public function isSingleton(): bool;
- public function doIDependOn($mClass): bool;
Instance methods are available using getClassInfo(className or object): AfrClassDependency