tbleckert/libero
Composer 安装命令:
composer create-project tbleckert/libero
包简介
The skeleton application for the Laravel framework.
关键字:
README 文档
README
Libero for Laravel is a small backend starter kit for native apps. It starts with iOS and gives you a Laravel API with email-verified users, Sign in with Apple, Sanctum API tokens, Filament admin, APNs push notifications, versioned endpoints, and Horizon queues.
Getting Started
composer install cp .env.example .env php artisan key:generate php artisan migrate npm install npm run build
Run the app and queue worker:
php artisan serve php artisan horizon
Create an admin user for Filament:
php artisan make:filament-user
The admin panel is available at /admin. The API starts at /api/v1.
Main Endpoints
GET /api/v1/healthPOST /api/v1/auth/registerPOST /api/v1/auth/tokensPOST /api/v1/auth/applePOST /api/v1/auth/forgot-passwordPOST /api/v1/auth/reset-passwordGET /api/v1/userPATCH /api/v1/userPUT /api/v1/user/passwordPOST /api/v1/push-devicesDELETE /api/v1/push-devices
Authenticated requests use a Sanctum bearer token:
Authorization: Bearer <token>
Apple Setup
In Apple Developer, create or select an explicit App ID for your iOS app. Enable Sign in with Apple and Push Notifications for that App ID.
Set these values in .env:
APPLE_TEAM_ID= APPLE_IOS_CLIENT_ID=com.example.App APPLE_KEY_ID= APPLE_PRIVATE_KEY_BASE64= APNS_TEAM_ID="${APPLE_TEAM_ID}" APNS_KEY_ID= APNS_PRIVATE_KEY_BASE64= APNS_BUNDLE_ID="${APPLE_IOS_CLIENT_ID}" LIBERO_ADMIN_EMAILS=admin@example.com LIBERO_EMAIL_VERIFIED_URL=https://example.com/email-verified LIBERO_PASSWORD_RESET_URL=https://example.com/reset-password
Sign in with Apple
- Create an explicit App ID with your app bundle ID, for example
com.example.App. - Enable Sign in with Apple on that App ID.
- Create a Sign in with Apple private key.
- Copy the key ID into
APPLE_KEY_ID. - Base64 encode the downloaded
.p8key intoAPPLE_PRIVATE_KEY_BASE64:
base64 < AuthKey_XXXXXXXXXX.p8 | tr -d '\n'
For native iOS, APPLE_IOS_CLIENT_ID is your app bundle ID. If you later add web Sign in with Apple, create a Services ID and put it in APPLE_WEB_CLIENT_ID.
Push Notifications
- Enable Push Notifications on the same App ID.
- Create an APNs auth key.
- Copy the APNs key ID into
APNS_KEY_ID. - Base64 encode the downloaded
.p8key intoAPNS_PRIVATE_KEY_BASE64. - Set
APNS_BUNDLE_IDto the app bundle ID that receives notifications.
Never commit .env or .p8 files.
Queues
Horizon requires Redis. Use QUEUE_CONNECTION=redis for normal development and production.
php artisan horizon
Testing
php artisan test
Apple References
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-24