alexkr/friendly
Composer 安装命令:
composer create-project alexkr/friendly
包简介
Simple friendship service based on PHP + Neo4j
README 文档
README
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
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
Change url in tests/api.suite.yml
Run:
composer test
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
alexkr/friendly 适用场景与选型建议
alexkr/friendly 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 01 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「neo4j」 「friends」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 alexkr/friendly 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 alexkr/friendly 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 alexkr/friendly 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked models.
Symfony integration for Neo4j
This package gives Eloquent models the ability to manage their followers.
This package gives Eloquent models the ability to manage their friendships.
A PHP Object Graph Mapper for Tinkerpop 3+ compatible Graph Databases (JanusGraph, Neo4j, etc.) that allows you to persist data and run gremlin queries.
Neo4j-PHP-Client is the most advanced PHP Client for Neo4j
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-10