nicolaskion/sde
Composer 安装命令:
composer require nicolaskion/sde
包简介
SDE Parser for EVE Online and Laravel
README 文档
README
EVE Online's Static Data Export as Eloquent models.
This package downloads EVE Online's official Static Data Export (SDE) from CCP and seeds it into your Laravel application's database — complete with migrations, Eloquent models, and relationships. Build market tools, fitting apps, universe maps, or killboards on top of a fully queryable SDE without ever touching a YAML file.
What's included
| Domain | Data |
|---|---|
| Items & dogma | Categories, groups, types, meta groups, market groups, attributes, effects, units — including per-type attributes and effects |
| Universe | Regions, constellations, solar systems, stargates and their connections, celestials (stars, planets, moons, asteroid belts), stations with operations and services |
| NPC & social | Factions, races, bloodlines, NPC corporations — plus ready-made tables and models for alliances, corporations, and characters to fill from ESI |
| Dynamic items | Mutaplasmids, their applicable types, and attribute ranges |
| Assets | Icons and graphics metadata |
Requirements
- PHP 8.3+ (tested up to 8.5, plus nightly)
- Laravel 12 or 13
ext-zip
Installation
Install the package via composer:
composer require nicolaskion/sde
Publish and run the migrations:
php artisan vendor:publish --tag="sde-migrations"
php artisan migrate
Optionally, publish the config file:
php artisan vendor:publish --tag="sde-config"
Usage
Download the latest SDE from CCP:
php artisan sde:download
Seed everything into the database:
php artisan sde:seed
sde:seed orchestrates all individual seeders in dependency order. Each is also available on its own:
| Command | Seeds |
|---|---|
sde:seed:icons |
Icons |
sde:seed:graphics |
Graphics |
sde:seed:units |
Dogma units |
sde:seed:attributes |
Dogma attributes |
sde:seed:effects |
Dogma effects and modifiers |
sde:seed:categories |
Item categories |
sde:seed:groups |
Item groups |
sde:seed:meta-groups |
Meta groups (Tech I, Tech II, …) |
sde:seed:market-groups |
Market group tree |
sde:seed:races |
Races |
sde:seed:types |
Item types |
sde:seed:type-attributes |
Per-type dogma attributes |
sde:seed:type-effects |
Per-type dogma effects |
sde:seed:universe |
Regions, constellations, solar systems, stargates, celestials, stations |
sde:seed:socials |
Factions, bloodlines, NPC corporations |
sde:seed:dynamic-items |
Mutaplasmids |
Querying the data
The models ship with their relationships wired up:
use NicolasKion\SDE\Models\Solarsystem; use NicolasKion\SDE\Models\Type; // A ship with its group, market group and dogma attributes $rifter = Type::query() ->with(['group', 'marketGroup', 'typeAttributes']) ->where('name', 'Rifter') ->first(); // All low-sec systems in a region, with their stations $systems = Solarsystem::query() ->with(['constellation', 'stations']) ->whereBetween('security', [0.1, 0.45]) ->whereRelation('region', 'name', 'Heimatar') ->get();
Customizing the models
If you want to extend or override the bundled Eloquent models, publish them to your application and point the sde.models config entries at your own classes:
php artisan vendor:publish --tag="sde-models"
// config/sde.php 'models' => [ 'Type' => App\Models\Type::class, // ... ],
The seeders resolve every model through this config, so your overrides are used everywhere.
Keeping the data fresh
CCP updates the SDE with every game patch. To stay current, schedule the download and seed commands, e.g. in routes/console.php:
use Illuminate\Support\Facades\Schedule; Schedule::command('sde:download')->weekly()->mondays()->at('11:30'); Schedule::command('sde:seed')->weekly()->mondays()->at('12:00');
Testing
composer test
This runs Rector (dry-run), Pint, PHPStan (level max) and Pest.
Changelog
Please see CHANGELOG for more information on what has changed recently. Releases are automated with release-please and published to Packagist.
Credits
EVE Online and all related data are © CCP hf. This package is not affiliated with or endorsed by CCP.
License
The MIT License (MIT). Please see License File for more information.
nicolaskion/sde 适用场景与选型建议
nicolaskion/sde 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.06k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 01 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「php」 「laravel」 「eve」 「sde」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nicolaskion/sde 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nicolaskion/sde 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nicolaskion/sde 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple ASCII output of array data
Alfabank REST API integration
Package for view storage in laravel
User Approval Laravel Package
PHPUnit Pretty Result Printer
统计信息
- 总下载量: 1.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-20