puleeno/rake-laravel-adapter
Composer 安装命令:
composer require puleeno/rake-laravel-adapter
包简介
The Laravel adapter for Rake migration framework
README 文档
README
Laravel adapter for Ramphor Rake - A PHP web crawler and data migration framework.
Installation
You can install the package via composer:
#!bash
composer require puleeno/rake-laravel-adapter
The package will automatically register its service provider.
Database Migrations
The package includes the necessary database migrations. To run them:
#!bash
php artisan migrate
This will create the following tables:
rake_crawled_urls- Stores URLs to be crawledrake_resources- Stores crawled resourcesrake_relations- Manages relationships between resourcesrake_options- Stores Rake configuration options
Models
The package provides Laravel Eloquent models for all tables:
CrawledUrl- For managing crawl URLsResource- For managing crawled resourcesOption- For managing Rake optionsRelation- Pivot model for resource relationships
Example usage:
#!php
use Rake\LaravelAdapter\Models\CrawledUrl;
use Rake\LaravelAdapter\Models\Resource;
use Rake\LaravelAdapter\Models\Option;
// Create new crawl URL
CrawledUrl::create([
'url' => 'https://example.com',
'rake_id' => 'my-rake-id',
'tooth_id' => 'my-tooth-id'
]);
// Get uncrawled URLs
$urls = CrawledUrl::where('crawled', false)->get();
// Get resource with relationships
$resource = Resource::with(['children', 'parents'])->find($id);
Configuration
You can publish the config file with:
bash
php artisan vendor:publish --tag="rake-config"
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email puleeno@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
puleeno/rake-laravel-adapter 适用场景与选型建议
puleeno/rake-laravel-adapter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 01 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 puleeno/rake-laravel-adapter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 puleeno/rake-laravel-adapter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-14