Download the PHP package alexkr/friendly without Composer
On this page you can find all versions of the php package alexkr/friendly. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package friendly
Simple friendship service written using Slim, PHP and Neo4j
Installation
Via composer:
composer create-project alexkr/friendly [destination].
Via git:
- Clone this repo
- Run
composer install - Run
composer bootstraporcomposer run-script post-create-project-cmd
Copy source code:
- Fill
config.php - Run
php initDatabase.php - Start server with
composer serve - Enjoy!
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%}/friendshipRequestwith POST-parameterfromUserId - Accept friendship requests -
POST: /users/{%user_id%}/friendshipRequestwith POST-parameterfromUserId - Decline friendship requests -
POST: /users/{%user_id%}/friendshipRequestwith POST-parameterfromUserId
Structure
Tests
Change url in tests/api.suite.yml
Run:
composer test
Scripts
Some scripts through composer for easier life.
All versions of friendly with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.0
slim/slim Version ~3.1
monolog/monolog Version ^1.17
oscarotero/psr7-middlewares Version ^3.10
everyman/neo4jphp Version dev-master
danielgsims/php-collections Version ^1.4
bdemirkir/slim-json-view Version 0.1.1
slim/slim Version ~3.1
monolog/monolog Version ^1.17
oscarotero/psr7-middlewares Version ^3.10
everyman/neo4jphp Version dev-master
danielgsims/php-collections Version ^1.4
bdemirkir/slim-json-view Version 0.1.1
The package alexkr/friendly contains the following files
Loading the files please wait ...