PHP-DIP | DIP是一种软件设计的指导思想 传统的软件设计中 上层代码依赖下层代码 当下层代码出现变动时
kandi X-RAY | PHP-DIP Summary
kandi X-RAY | PHP-DIP Summary
PHP-DIP is a PHP library. PHP-DIP has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.
DIP是一种软件设计的指导思想,传统的软件设计中,上层代码依赖下层代码, 当下层代码出现变动时,上层代码也要相应变化, 维护成本高. 而DIP的核心思想是上层定义接口, 下层实现接口, 从而使下层依赖于上层, 降低耦合度, 提高整个系统的弹性. 这是一种经实践证明的有效的策略. Ioc就是DIP的一种具体思路, DIP只是一个概念,思想, 而IoC是一种实现DIP的方法. IoC的核心是将类(上层)所依赖的单元(下层) 的实例化过程交给由第三方来实现. 一个简答的特征, 就是类中不对依赖的单元有如: $component = new yii\component\SomeClass() 的实例化语句. 当项目比较大时,依赖关系可能会比较复杂,而IoC Container提供了动态创建,注入依赖单元, 映射关系等功能, 减少了许多代码量 Yii设计了一个yii\di\Container来实现DI Container. Service Locator是Ioc的另一种实现方式, 其核心是把所以可能用到的依赖单元交由Service Locator进行实例化和创建,配置, 把类 对依赖单元的依赖, 转变成类对Service Locator的依赖. DI与Service Locator并不冲突, 两者可以结合使用.
DIP是一种软件设计的指导思想,传统的软件设计中,上层代码依赖下层代码, 当下层代码出现变动时,上层代码也要相应变化, 维护成本高. 而DIP的核心思想是上层定义接口, 下层实现接口, 从而使下层依赖于上层, 降低耦合度, 提高整个系统的弹性. 这是一种经实践证明的有效的策略. Ioc就是DIP的一种具体思路, DIP只是一个概念,思想, 而IoC是一种实现DIP的方法. IoC的核心是将类(上层)所依赖的单元(下层) 的实例化过程交给由第三方来实现. 一个简答的特征, 就是类中不对依赖的单元有如: $component = new yii\component\SomeClass() 的实例化语句. 当项目比较大时,依赖关系可能会比较复杂,而IoC Container提供了动态创建,注入依赖单元, 映射关系等功能, 减少了许多代码量 Yii设计了一个yii\di\Container来实现DI Container. Service Locator是Ioc的另一种实现方式, 其核心是把所以可能用到的依赖单元交由Service Locator进行实例化和创建,配置, 把类 对依赖单元的依赖, 转变成类对Service Locator的依赖. DI与Service Locator并不冲突, 两者可以结合使用.
Support
Quality
Security
License
Reuse
Support
PHP-DIP has a low active ecosystem.
It has 2 star(s) with 0 fork(s). There are 1 watchers for this library.
It had no major release in the last 6 months.
PHP-DIP has no issues reported. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of PHP-DIP is current.
Quality
PHP-DIP has no bugs reported.
Security
PHP-DIP has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
PHP-DIP does not have a standard license declared.
Check the repository for any license declaration and review the terms closely.
Without a license, all rights are reserved, and you cannot use the library in your applications.
Reuse
PHP-DIP releases are not available. You will need to build from source code and install.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PHP-DIP
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PHP-DIP
PHP-DIP Key Features
No Key Features are available at this moment for PHP-DIP.
PHP-DIP Examples and Code Snippets
No Code Snippets are available at this moment for PHP-DIP.
Community Discussions
No Community Discussions are available at this moment for PHP-DIP.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PHP-DIP
You can download it from GitHub.
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page