定制 cultuurnet/udb3-silex 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cultuurnet/udb3-silex

Composer 安装命令:

composer require cultuurnet/udb3-silex

包简介

UiTdatabank 3 core application

README 文档

README

This repository contains the PHP app that provides most of the backend of UiTdatabank v3, aka UDB3.

Setup

You can find a full guide on how to setup the project here

Contributing

Several CI checks have been provided to make sure any changes are compliant with our coding standards and to detect potential bugs.

You can run all CI checks combined using the following composer script:

make ci

Or run them individually:

  • make test for tests
  • make phpstan for static analysis
  • make cs for detecting coding standards violations
  • make cs-fix for fixing coding standards violations (where possible)

These checks will also run automatically for every PR.

Database migrations

We use Doctrine Migrations to manage database schema updates.

To run the migrations, you can use the following composer script:

make migrate

Docker with Xdebug

The docker file is provided with an optional profile to enable Xdebug.

The first time you have to build both versions:

Install without Xdebug

docker compose up -d

Install profile with Xdebug

docker compose --profile xdebug up -d

You don't have to rebuild to switch, you can just switch between versions in your docker engine. Both version are running at the same time, the image without xdebug at port 8000 and the image with xdebug at port 8001.

Using xdebug

To bash inside the xdebug enable container, use

make bash-xdebug

Xdebug is configured to run with trigger mode, meaning you have to modify the request to enable xdebug:

  • API: ADD XDEBUG_TRIGGER as a GET or POST variable, for example in Postman.
  • Browser: install a browser debugging extension
  • CLI: (useful with unit tests):
make bash-xdebug
source ./docker/start-xdebug.sh

Logs

Logs are located in the ./logs directory.

General logs

  • web.log contains unforeseen errors/exceptions that occurred in HTTP requests
  • cli.log contains CLI errors that did not get caught and logged to the other logs listed below

Worker logs

The following logs contain info about CLI commands that run continuously.

  • amqp.uitpas.log contains logs about UiTPAS events that get processed through the amqp-listen-uitpas CLI command
  • resque.bulk-label-offer.log contains logs about the resque worker for the bulk_label_offer queue
  • resque.event-export.log contains logs about the resque worker for the event_export queue

Service logs

The following logs contain info about specific services that can be part of HTTP requests, CLI commands, or both.

  • service.xml-conversion.log contains logs about parsing/projection of previously imported XML
  • service.json-imports.log contains logs about JSON-LD imports
  • service.labels.log contains logs about label (aggregates)
  • service.media.log contains logs about the media manager, i.e. about uploads and edits of images and media objects
  • service.geo-coordinates.log contains logs about the geocoding of organizers and places
  • service.uitpas.log contains logs about general calls to UiTPAS, e.g. to check for ticket sales

Adding a new logger

Use the LoggerFactory::create() method to quickly create a new logger. This way it gets stored in the right directory, correct formatting of exceptions, automatic Sentry integration, etc.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 18
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2016-02-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固