PHPackages                             alexkr/friendly - 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. alexkr/friendly

ActiveProject

alexkr/friendly
===============

Simple friendship service based on PHP + Neo4j

0.1(10y ago)081MITPHPPHP &gt;=5.5.0

Since Jan 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/AlexKR/friendly)[ Packagist](https://packagist.org/packages/alexkr/friendly)[ RSS](/packages/alexkr-friendly/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Simple friendship service written using Slim, PHP and Neo4j
===========================================================

[](#simple-friendship-service-written-using-slim-php-and-neo4j)

Installation
------------

[](#installation)

Via composer:

`composer create-project alexkr/friendly [destination]`.

Via git:

- Clone this repo
- Run `composer install`
- Run `composer bootstrap` or `composer run-script post-create-project-cmd`

Copy source code:

- Fill `config.php`
- Run `php initDatabase.php`
- Start server with `composer serve`
- Enjoy!

Endpoints
---------

[](#endpoints)

- Create user - `POST: /users`
- Get friends list - `GET: /users/{%user_id%}/friends`
- Get friends of friends list - `GET: /users/{%user_id%}/friendsOfFriends`
- Get friends of friends with n-depth list - `GET: /users/{%user_id%}/friendsOfFriends/{%depth%}`
- Get friendship requests - `GET: /users/{%user_id%}/friendshipRequests`
- Send friendship requests - `POST: /users/{%user_id%}/friendshipRequest` with POST-parameter `fromUserId`
- Accept friendship requests - `POST: /users/{%user_id%}/friendshipRequest` with POST-parameter `fromUserId`
- Decline friendship requests - `POST: /users/{%user_id%}/friendshipRequest` with POST-parameter `fromUserId`

Structure
---------

[](#structure)

```
logs/   - Log output
public/ - Site configuration entry point limits what we expose
tests/  - Codeception tests
src/
    Controller/ - Route controllers
    Model/      - Data models
    Service/    - Service providers
    app.php     - Primary application
    routes.php  - Route creation
vendor/ - Composer install directory
config.example.php  - Example application config constants

```

Tests
-----

[](#tests)

Change url in `tests/api.suite.yml`

Run:

```
composer test

```

Scripts
-------

[](#scripts)

Some scripts through composer for easier life.

```
composer
        codecept  - shortcut to codecept
        test      - alias for codecept run
        cs        - alias for "phpcs --standard=PSR2 src/",
        cbf       - alias for "phpcbf --standard=PSR2 src/",
        serve     - starts test server
        bootstrap - alias to @post-create-project-cmd

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3777d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab60434e0f3c80a2035d10a99e5771c833c2a2361b687c315c9e01270b70a9fd?d=identicon)[AlexKR](/maintainers/AlexKR)

---

Tags

friendsneo4j

###  Code Quality

TestsCodeception

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/alexkr-friendly/health.svg)

```
[![Health](https://phpackages.com/badges/alexkr-friendly/health.svg)](https://phpackages.com/packages/alexkr-friendly)
```

###  Alternatives

[hirevoice/neo4jphp-ogm

Doctrine2-style entity mapper for Neo4j graph database

15918.6k1](/packages/hirevoice-neo4jphp-ogm)[egroupware/openid

EGroupware OpenID Connect / OAuth2 server

1226.8k2](/packages/egroupware-openid)[artdarek/neo4j-4-laravel

Neo4j for Laravel 4.

282.4k](/packages/artdarek-neo4j-4-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
