glider88/fixturization 问题修复 & 功能扩展

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

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

glider88/fixturization

最新稳定版本:1.0.0

Composer 安装命令:

composer require glider88/fixturization

包简介

Create fixtures from database

关键字:

README 文档

README

Select the start of the table crawl, after which the spider will follow the table refs and collect data. Determine which columns are needed, which filters to use, how many rows select from the table, and how to transform the data after fetching. This data can be used for fixtures or tests.

Installation:

composer require glider88/fixturization

Learn by example:

See how you can use library in examples/

Get data:

wget https://raw.githubusercontent.com/devrimgunduz/pagila/refs/heads/master/pagila-schema.sql -P .docker/postgres
wget https://raw.githubusercontent.com/devrimgunduz/pagila/refs/heads/master/pagila-data.sql -P .docker/postgres

Fix owner:

sed -i -e 's/OWNER TO postgres/OWNER TO fixturization/g' .docker/postgres/pagila-schema.sql

Start docker:

bin/re  # first time
bin/up  # next times

Generate schema from database:

bin/sh php examples/schema.php psql

Additional description of the schema that is not in the database: examples/var/schema/manual.yaml

Generate dump (support sql and yaml formats):

bin/sh php examples/crawler.php sql yaml

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固