神刀安全网

Common interfaces and classes I use in an app. Mostly for teaching OOP

Interaces

Most common interfaces I use in apps. Mostly for teaching OOP.

You can use this library in your app to create your classes designed by contract.

Installation

After you go into the app directory, you should execute following commands. OS X & Linux:

composer require midorikocak/interfaces

Usage example

You should use the interfaces, and your class should implement the interface you want to use. An interface has only public methods. I use php 7 in this lib, so that all methods should have exact parameter and return types, defined in the interfaces.

Development setup

To run all tests of the app, execute these commands in the app directory.

composer install phpunit

Release History

  • 0.0.1
    • Work in progress
    • packagist auto update
    • better interface organization
    • tests are not finished yet

Meta

Midori Kocak – @midorikocakmidori@mynameismidori.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/midorikocak/prezis

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Common interfaces and classes I use in an app. Mostly for teaching OOP

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址