nodes/core
最新稳定版本:1.1.23
Composer 安装命令:
composer require nodes/core
包简介
Required for all Nodes packages
README 文档
README
The main package used by most Nodes packages.
📝 Introduction
This package is what we in Nodes call the "Core" package. It consists of a lot of helpful methods, which makes it easier to develop other packages and projects in general.
The most important thing about this package, is that it contains a modified version of the default Exception. We've tweaked it a little bit, to add support for custom HTTP status codes and messages.
These custom HTTP status code are used in all of our projects to return project specific error codes to our mobile developers.
Therefore you will experience that a lot of the Nodes packages will have this core package as a required dependency, since it either utilizes the custom Exception or any of our helper methods.
Last but not least, this package also contains the package Browscap, which makes it easier to parse user-agents, which is quite handy when used with services like Bugsnag.
📦 Installation
To install this package you will need:
- Laravel 5.1+
- PHP 5.5.9+
You must then modify your composer.json file and run composer update to include the latest version of the package in your project.
"require": { "nodes/core": "^1.0" }
Or you can run the composer require command from your terminal.
composer require nodes/core
🔧 Setup
Setup provider in config/app.php
Nodes\ServiceProvider::class,
Setup alias in config/app.php (optional)
'NodesUserAgent' => Nodes\Support\Facades\UserAgent::class,
Publish config files
php artisan vendor:publish --provider="Nodes\ServiceProvider"
If you want to overwrite any existing config files use the --force paramter
php artisan vendor:publish --provider="Nodes\ServiceProvider" --force
Notes
If you are using the Nodes\Http\Request\FormRequest present in this class, you will notice that on Web calls if validation fails it will report the exception (this does not interfere with the UX). This can be avoided by adding Illuminate\Validation\ValidationException to the $dontReport array on app/Exceptions/Handler.php. This is not needed for API calls since the exception will be Nodes\Validation\Exceptions\ValidationException and this does not report by default.
🏆 Credits
This package is developed and maintained by the PHP team at Nodes
📄 License
This package is open-sourced software licensed under the MIT license
nodes/core 适用场景与选型建议
nodes/core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18.37k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2015 年 11 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「helpers」 「tools」 「laravel」 「core」 「nodes」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nodes/core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nodes/core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nodes/core 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A set of useful PHP classes.
A Laravel package to retrieve data from Google Search Console
HTML and form generation
GHT D-Tools Bundle
Falsy helps you manage half-truths with PHP
Allow KoolReport to use twig template engine to render view
统计信息
- 总下载量: 18.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 8
- 依赖项目数: 17
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-08