承接 selenia/platform 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

selenia/platform

Composer 安装命令:

composer require selenia/platform

包简介

An extensible application base, built on Electro

README 文档

README

An extensible application base, built on Electro

This package is meant to be installed on an Electro framework blank application.

Features

This plugin provides:

Design
  1. Administration layouts based on Twitter Bootstrap 3.
  • A main menu for your app.
  • Breadcrumb navigation.
  • Custom UI components.
  • Custom styling for the standard widgets.
  • Overridable templates for every bundled page.
Users and Authentication
  1. User management with roles support.
  • A form for editing the logged-in user's profile.
  • Automatic login form and logout action.
  • A default implementation of the User and Authentication APIs.
Translations support
  1. A fully translatable interface.
  • Translations management.
Forms
  • Multi-language forms.
  • Predefined actions for handling form submissions and automatically creating, updating and deleting records.

Bundled UI components

Administration / Generic App layouts
Tag name Description
Admin The base layout for all administration pages.
GridPage A layout for pages displaying a list of records.
FormPage A layout for pages displaying a form.
BaseAdmin Use this only if you need a completely custom design, but retaining all bundled scripts and styles.
Main A bare bones layout with the main menu on top.
Sub-layouts
Tag name Description
FormLayout A responsive form container. Use Field components inside.
FormLayout2Columns A responsive form container with two columns.
Widgets
Tag name Description
ActionBar A bar container for buttons of your page / form actions.
ButtonNew A button to create a new record.
ButtonSave A button to save the current record.
StandardFormActions Standard buttons to save or delete the current record. The delete button is not displayed for new records.
ButtonSubmit A generic submit button.
MenuItem A navigation link that is auto-highlighted when it matches the current URL.
Paginator A default configuration for the Paginator component.
Panel A generic panel, with title bar, footer and actions bar.
Static A static (non-editable) form field.
TerminalOutput Displays text originating from the output of running command-line processes.
UserMenu The default user session menu.

Installation

To install this plugin on your application, using the terminal, cd to your app's directory and type:

workman module:install-plugin selenia/selenia

For correct operation, do not install this package directly with Composer.

Required configuration settings

The default bundled administration pages require some settings to be configured.

If you don't use these pages on your app, you don't need to set these settings.

  • languages = [ array of language definitions ]
  • requireLogin = true
  • globalSessions (optional)

The admin interface is multilingual (even if you use just one language on your app), and this plugin enables translation support by default.

If you have overriden that setting on your app's configuration, you'll need to enable it or create a sub-configuration to enable it for the chosen URI prefix.

You'll need to define, at least, one language on the app's configuration and select a default language on the .env file.

Example

On private/config/application.ini.php

return [
  'main' => [
    'languages'           => [
      'en:en-US:English:en_US|en_US.UTF-8|us',
      'pt:pt-PT:Português:pt_PT|pt_PT.UTF-8|ptg',
    ],
    'globalSessions'      => false, // share the session between the application and its sub-applications?
    'requireLogin'        => true,  // require login for this application?
  ]
];

On .env

APP_DEFAULT_LANG  = en

Usage

This plugin integrates into your application's main menu. The bundled pages will appear automatically on it.

If the app does not display the menu, you'll need to navigate manually to the provided URLs to see one of the bundled administration pages.

Relative URL for the user administration page: admin/users

If you want pages on your app to inherit the bundled administration graphical layout and default functionality, you'll need to:

  1. make your controller classes inherit from Selenia\Controllers\SeleniaController
  2. include on each of your views, as root tag, one of the bundled layout templates (ex: <Selenia>).

See the bundled administration pages' source code for concrete examples.

Plugin development

If you need to perform modifications on this plugin's assets, you'll need to rebuild it before commiting those changes.

Installing the development tools

cd private/plugins/selenia/platform
npm install
bower install

Rebuilding the plugin

cd private/plugins/selenia/platform
npm run build

License

The Selenia Platform is open-source software licensed under the MIT license.

Selenia Platform - Copyright © Cláudio Silva and Impactwave, Lda.

selenia/platform 适用场景与选型建议

selenia/platform 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.05k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 06 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「plugin」 「selenia」 「electro」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 selenia/platform 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 selenia/platform 我们能提供哪些服务?
定制开发 / 二次开发

基于 selenia/platform 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 2.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 7
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-16