aimeos/aimeos-flow 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

aimeos/aimeos-flow

最新稳定版本:2019.10.1

Composer 安装命令:

composer require aimeos/aimeos-flow

包简介

Professional, full-featured and high performance Flow/NeosCMS e-commerce package for online shops and complex B2B projects

README 文档

README

Aimeos logo

Aimeos Flow/Neos package

Build Status Scrutinizer Code Quality

⭐ Star us on GitHub — it helps!

Aimeos is THE professional, full-featured and high performance e-commerce package for Flow/NeosCMS! You can install it in your existing Flow application within 5 minutes and can adapt, extend, overwrite and customize anything to your needs.

Aimeos Flow demo

Table of content

Installation

This document is for the latest Aimeos Flow 2019.10 release and later.

  • LTS release: 2019.10

The Aimeos Flow/Neos web shop package is a composer based library that can be installed easiest by using Composer:

composer create-project neos/flow-base-distribution myshop

Make sure that the database is set up and it is configured. If you want to use a database server other than MySQL, please have a look into the article about supported database servers and their specific configuration.

Neos has a nice setup page for this when opening the /setup URL of your installation. For Flow, this is done in your Configuration/Settings.yaml file and must at least include these settings:

Neos:
  Flow:
    persistence:
      backendOptions:
        host: '<host name or IP address>'
        dbname: '<database name>'
        user: '<database user name>'
        password: '<secret password>'

Important: The configuration file format requires each additional indention to be two spaces. Not more, not less and no tabs at all! Otherwise, you will get an error about an invalid configuration file format.

Then add these lines to your composer.json of your Flow/Neos project:

    "extra": {
        "installer-paths": {
            "Packages/Extensions/{$name}/": ["type:aimeos-extension"]
        }
    },
    "prefer-stable": true,
    "minimum-stability": "dev",
    "require": {
        "aimeos/aimeos-flow": "~2019.10",
        ...
    },

Afterwards, install the Aimeos shop package using

composer update

Setup

To create all required tables and to add the demo data, you need to execute a Flow console command in the base directory of your Flow application:

./flow aimeos:setup --option=setup/default/demo:1

In a production environment or if you don't want that the demo data gets installed, leave out the --option=setup/default/demo:1 option.

For Flow only you need to import the routes from the Aimeos web shop package into your Configuration/Routes.yaml nice looking URLs. Insert the lines below to the beginning of the Routes.yaml file:

-
  name: 'Aimeos'
  uriPattern: 'shop/<AimeosShopRoutes>'
  subRoutes:
    AimeosShopRoutes:
      package: 'Aimeos.Shop'

It's important to import the routes from the Aimeos web shop package before the FlowSubroutes lines. If you add it afterwards, the default Flow routes will match first and you will get an error that the requested package/action wasn't found.

Now Flow would basically know which controller/action it shall execute. But with Neos, one additional step is needed:

Add the following PrivilegeTarget to Configuration/Policy.yaml

privilegeTargets:
  Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilege:
    'MyShop:AllActions':
      matcher: 'method(Aimeos\Shop\Controller\(.*)Controller->(.*)Action())'

roles:
  'Neos.Flow:Everybody':
    privileges:
      -
        privilegeTarget: 'MyShop:AllActions'
        permission: GRANT

The above will grant access to all Aimeos Controller/Actions pairs, for everyone - probably not what you want. Please refine to your needs!

Then, you should be able to call the catalog list page in your browser using

http://<your web root>/shop/list

For the administration interface you have to setup authenticaton first and log in before you will be able to get into the shop management interface:

http://<your web root>/shop/admin

Hints

To simplify development, you should configure to use no content cache. You can do this in the Configuration/Settings.yaml file of your Flow/Neos application by adding these lines at the bottom:

Aimeos:
  Shop:
    flow:
      cache:
        name: None

License

The Aimeos Flow/Neos package is licensed under the terms of the LGPLv3 license and is available for free.

Links

aimeos/aimeos-flow 适用场景与选型建议

aimeos/aimeos-flow 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.1k 次下载、GitHub Stars 达 28, 最近一次更新时间为 2014 年 11 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 aimeos/aimeos-flow 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 28
  • Watchers: 4
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2014-11-04