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. [Utility &amp; Helpers](/categories/utility)
4. /
5. alexkr/friendly

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

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 4w 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 21% 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

3824d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/328410?v=4)[Oleksandr Perekopsky](/maintainers/AlexKR)[@AlexKR](https://github.com/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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[azuracast/azuracast

The AzuraCast self-hosted web radio station management suite.

3.9k27.8k](/packages/azuracast-azuracast)[oat-sa/tao-core

TAO core extension

66140.1k108](/packages/oat-sa-tao-core)

PHPackages © 2026

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