alphavel/skeleton
Composer 安装命令:
composer create-project alphavel/skeleton
包简介
Minimal Alphavel Framework application skeleton - install only what you need
README 文档
README
Minimal application starter for Alphavel Framework
🚀 Performance: Proactive by Default (v1.0.6+)
Alphavel delivers 22k req/s out of the box - no manual tuning required!
What's Optimized Automatically
✅ BASE mode - 29% faster than PROCESS mode
✅ CPU × 2 workers - Optimal parallelism
✅ Infinite max_request - No restart overhead
✅ APCu autoloader - Cached class locations
✅ Aggressive OPcache warm-up - Hot cache from start
Benchmarks: 22k req/s (complex routes) | 520k+ req/s (simple routes)
⚡ Quick Start
Create New Project
composer create-project alphavel/skeleton my-app
cd my-app
php public/index.php
Visit: http://localhost:9999
Docker (Recommended for Development)
# No Swoole installation required! docker-compose -f docker-compose.dev.yml up # Access curl http://localhost:9999
🐳 Installing Without PHP/Swoole Locally
If you don't have PHP or Swoole installed on your machine:
# 1. Install project (ignoring platform requirements) composer create-project alphavel/skeleton my-app --ignore-platform-reqs # 2. Go to project directory cd my-app # 3. Start with Docker (composer install runs inside container automatically) docker-compose up # The container will: # ✅ Detect missing vendor/autoload.php # ✅ Run composer install automatically # ✅ Copy any missing skeleton files # ✅ Start the server # Access curl http://localhost:9999
Note: The Docker entrypoint automatically handles missing dependencies and skeleton files.
⚠️ Composer cache permissions (host)
During composer create-project you may see warnings like:
Cannot create cache directory /home/USER/.composer/cache/... or directory is not writable. Proceeding without cache.
This is harmless for the project creation itself, but can be confusing. Recommendations:
- Fix permissions for the Composer cache directory on your host:
# Replace $USER with your username if needed mkdir -p "$HOME/.composer/cache" chown -R "$USER:$USER" "$HOME/.composer"
- Or avoid host Composer entirely by using the provided Docker image (recommended):
docker-compose -f docker-compose.dev.yml up
If you must ignore platform requirements when creating the project (not recommended for production), use:
composer create-project alphavel/skeleton my-app --ignore-platform-reqs
📦 Optional Packages
composer require alphavel/database # Query Builder + ORM composer require alphavel/cache # Redis, File caching composer require alphavel/validation # Input validation composer require alphavel/events # Event dispatcher composer require alphavel/logging # PSR-3 logger composer require alphavel/support # Collections, helpers
After installing, update .env with appropriate connection settings.
📁 Project Structure
my-app/
├── app/
│ └── Controllers/ # HTTP controllers
├── config/
│ ├── app.php # App configuration
│ └── swoole.php # Swoole server config (proactive defaults)
├── public/
│ └── index.php # Entry point
├── routes/
│ └── api.php # API routes
├── storage/
│ ├── framework/ # Framework cache
│ └── logs/ # Application logs
├── Dockerfile # Production image (APCu + OPcache)
└── docker-compose.yml # Docker orchestration
📚 Documentation
Full documentation: https://github.com/alphavel/documentation
📄 License
MIT License
alphavel/skeleton 适用场景与选型建议
alphavel/skeleton 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 32 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 alphavel/skeleton 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 alphavel/skeleton 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-19