PHPackages                             litinghong/interface-distiller - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. litinghong/interface-distiller

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

litinghong/interface-distiller
==============================

Derives Interfaces from the API of a class

019PHP

Since Sep 23Pushed 6y agoCompare

[ Source](https://github.com/litinghong/InterfaceDistiller)[ Packagist](https://packagist.org/packages/litinghong/interface-distiller)[ RSS](/packages/litinghong-interface-distiller/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

InterfaceDistiller
==================

[](#interfacedistiller)

InterfaceDistiller allows you to derive Interfaces from the API of a class.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/60324a54d2fd2472f1df921fba51eeb854f62a91edddd3839654bb4e6d5c16cc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f6f682f496e7465726661636544697374696c6c65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gooh/InterfaceDistiller/?branch=master)[![Build Status](https://camo.githubusercontent.com/9256f273dee02c81baf034f4eaece2bbcb64954034b67391a98cddf7f5582bee/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f6f682f496e7465726661636544697374696c6c65722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gooh/InterfaceDistiller/build-status/master)

Basic Usage Example
-------------------

[](#basic-usage-example)

Interface Distiller can either be used a) programmatically, b) via a Builder or c) via the command line. Using it programmatically offers the greatest flexibility but is usually not needed. The Builder offers a convenient way to configure distillation of interfaces. The command line interface is a wrapper around the Builder and offers the same options.

### Example 1 - Using the Builder

[](#example-1---using-the-builder)

```
