midorikocak/interfaces

common interfaces I use in an app. Mostly for teaching OOP

dev-master 2016-06-22 09:07 UTC

This package is not auto-updated.

Last update: 2024-11-07 02:49:51 UTC


README

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

Build Status

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