PHPackages                             kirouane/logic - 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. kirouane/logic

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

kirouane/logic
==============

PROLOG adaptation

21PHP

Since Jun 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Kirouane/logic)[ Packagist](https://packagist.org/packages/kirouane/logic)[ RSS](/packages/kirouane-logic/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Logic
=====

[](#logic)

This PHP library is inspired by PROLOG which is a Logic Programming Language. People who are accustomed with PROLOG will find some interesting features.

Install
-------

[](#install)

`composer require kirouane/logic`

Examples
--------

[](#examples)

The examples below are based on this excellent [post](https://bernardopires.com/2013/10/try-logic-programming-a-gentle-introduction-to-prolog/) about PROLOG.

#### Example 1 : Queries

[](#example-1--queries)

```
