midorikocak / interfaces
common interfaces I use in an app. Mostly for teaching OOP
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 1
Open Issues: 1
Type:project
Requires
- phpunit/phpunit: ^5.2
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.
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 – @midorikocak – midori@mynameismidori.com
Distributed under the MIT license. See LICENSE
for more information.