laminas-api-tools/api-tools-admin-ui
Composer 安装命令:
composer require laminas-api-tools/api-tools-admin-ui
包简介
Laminas API Tools Admin UI module
关键字:
README 文档
README
🇷🇺 Русским гражданам
Мы, участники Laminas, родились и живем в разных странах. У многих из нас есть друзья, родственники и коллеги как в России, так и в Украине. Некоторые из нас родились в России. Некоторые из нас живут в России. У некоторых бабушки и дедушки сражались с фашистами во Второй мировой войне. Здесь никто не поддерживает фашизм.
У одного из нас есть украинская родственница, которая спаслась из дома вместе с сыном. Поезд задержался из-за бомбежки на дороге впереди. У нас есть друзья, которые прячутся в бомбоубежищах. Мы с тревогой ждем весточки от них после воздушных налетов, которые беспорядочно наносят удары и попадают по больницам, школам, детским садам и домам. Мы не берем это из каких-либо СМИ. Мы наблюдаем это напрямую.
Вы доверяете нам достаточно, чтоб использовать наши программы, и мы просим вас довериться нам вновь. Мы нуждаемся в помощи. Выходите и протестуйте против этой бесполезной войны. Остановите кровопролитие. Скажите "Нет войне!"
🇺🇸 To Citizens of Russia
We at Laminas come from all over the world. Many of us have friends, family and colleagues in both Russia and Ukraine. Some of us were born in Russia. Some of us currently live in Russia. Some have grandparents who fought Nazis in World War II. Nobody here supports fascism.
One team member has a Ukrainian relative who fled her home with her son. The train was delayed due to bombing on the road ahead. We have friends who are hiding in bomb shelters. We anxiously follow up on them after the air raids, which indiscriminately fire at hospitals, schools, kindergartens and houses. We're not taking this from any media. These are our actual experiences.
You trust us enough to use our software. We ask that you trust us to say the truth on this. We need your help. Go out and protest this unnecessary war. Stop the bloodshed. Say "stop the war!"
This is the source code for the new Laminas API Tools Admin User Interface. We rewrote from scratch the UI in AngularJS with performance improvement and usability.
We added some new features:
- Doctrine support for DB connected REST service;
- DB autodiscovering for table and fields;
- Per-API authentication (develop in progress, see TODO list);
Note
To be able to run the new UI you need to use the develop branch of api-tools-skeleton For instance, you can install the develop branch using composer:
composer create-project laminas-api-tools/api-tools-skeleton api-tools dev-developThis command install the api-tools-skeleton application in the api-tools local folder.
Requirements
- npm, for installing the various development requirements, which primarily includes Grunt and Bower, and tools these to utilize.
- Grunt must be installed globally in order to allow using it to serve a source build and run tests.
- Bower must be installed globally in order to allow using it to install development dependencies.
Run the following command from this directory to install dependencies:
$ npm install
If you have not yet installed Grunt, please do so:
$ sudo npm install -g grunt
If you have not yet installed Bower, please do so:
$ sudo npm install -g bower
Finally, invoke Bower to install the relevant CSS and JS libraries:
$ bower install
Invoking the Admin
There are three ways to invoke the Admin UI: as part of an Laminas API Tools project, standalone via node, or via source using grunt.
Via Laminas API Tools
Add the admin as a dev requirement to your project:
$ composer require-dev "laminas-api-tools/api-tools-admin-ui:~1.0"
and add the module Laminas\ApiTools\Admin\Ui to the list of modules in
config/development.config.php.dist (and potentially
config/development.config.php if already in development mode.
Navigating to the URI /api-tools/ui in your Laminas API Tools application will now hit the UI.
Standalone
The standalone method fires up a webserver using node. This method requires that
you have a running Laminas API Tools Admin API and know the URL, and that that server is
configured to enable CORS; see the Laminas API Tools CORS
documentation
if you need help setting this aspect up. Make a note of the URI for your server;
the API URI will be <server>/api-tools/api.
Additionally, we recommend noting the URI to your API documentation, so that the navigation item can point to it.
Fire up the admin UI using:
$ node index.js --src --api=<URI to Laminas API Tools Admin API (ends in /api-tools/api)>
(For help with options, see node index.js -h.)
By default, if you do not specify a port, the server will run on port 3000; you
can specify a port with the --port=<port> option.
Source invocation via Grunt
The grunt serve command does several things:
- Runs
grunt watch, which looks for file changes and runs tasks such asjshint, unit tests, and combining partials into JS templates. - Runs a livereload, static HTTP server; any file change will force it to reload, and trigger any browser windows with the UI loaded to reload.
The grunt server runs in the same way as the standalone server: it accepts the same options, and has the same CORS limitations. As an example:
$ grunt serve --api=<URI to Laminas API Tools Admin API (ends in /api-tools/api)> \ > --doc=<URI to API documentation> --port=3001 --host=ag.dev
Please see our contributing guide for information on how to run tests and hack on the UI.
laminas-api-tools/api-tools-admin-ui 适用场景与选型建议
laminas-api-tools/api-tools-admin-ui 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 856.13k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2019 年 12 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「api」 「laminas」 「api-tools」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 laminas-api-tools/api-tools-admin-ui 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 laminas-api-tools/api-tools-admin-ui 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 laminas-api-tools/api-tools-admin-ui 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
This package provide a Geo modules for yawik.
A PSR-7 compatible library for making CRUD API endpoints
PSR-11 Aura.DI container configurator for Laminas and Mezzio applications. Drop-in replacement for the archived laminas/laminas-auradi-config with PHP 8.4 and 8.5 support.
MongoDB Adapter to be used with Laminas Paginator
Utils to load, parse and work with configuration on Mezzio projects
统计信息
- 总下载量: 856.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 29
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-12-31