nativephp / mobile-api-starter-kit
The official NativePHP API starter kit for Mobile.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
pkg:composer/nativephp/mobile-api-starter-kit
Requires
- php: ^8.2
- laravel/framework: ^12.0
- laravel/sanctum: ^4.0
- laravel/tinker: ^2.10.1
- livewire/livewire: ^3.6.4
- nativephp/mobile: ^2.0.0
Requires (Dev)
- fakerphp/faker: ^1.23
- laravel/boost: ^1.8
- laravel/pail: ^1.2.2
- laravel/pint: ^1.24
- laravel/sail: ^1.41
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- pestphp/pest: ^4.1
- pestphp/pest-plugin-laravel: ^4.0
This package is auto-updated.
Last update: 2025-12-03 01:13:55 UTC
README
A complete mobile app starter kit built with Laravel, NativePHP, Livewire, and Tailwind CSS. Features authentication, news feed, and native mobile UI components.
Features
- 🔐 Complete authentication system with Sanctum API tokens
- 📱 Native mobile UI components (top bar, side navigation)
- 📰 RSS news feed integration with Laravel News
- 🔒 Secure token storage using device Keychain/KeyStore
- 🎨 Beautiful Tailwind CSS styling with dark mode support
- ⚡ Livewire for reactive components
- 🌊 Smooth page transitions
- 📖 In-app browser for external links
Requirements
- PHP 8.3+
- Laravel 11+
- Node.js & NPM
- Android Studio (for Android development)
- Xcode (for iOS development, macOS only)
- NativePHP License
Installation
laravel new my-app --using=nativephp/mobile-api-starter-kit
cd my-app
cp .env.example .env
php artisan native:install
What's Included
- Authentication Pages: Login, Register, Profile
- Home Dashboard: Welcome page with user info
- News Feed: Laravel News RSS reader with images
- API Integration: Ready-to-use API client with Sanctum authentication
- Native Components: Top bar, side navigation, in-app browser
- Secure Storage: Token management with device security
Development
Setting Up Your API Server
The mobile app needs to connect to your Laravel API. For local development, you need to expose your local server so the mobile device/simulator can access it.
Option 1: Using Laravel Herd (Recommended for macOS)
# Share your local site herd share # Update .env with the provided URL API_URL=https://ABC123.sharedwithexpose.com
Option 2: Using ngrok
# Start local laravel server php artisan serve # Start ngrok tunnel ngrok http 8000 # Update .env with the provided URL API_URL=https://ABC123.ngrok-free.app
Running the Mobile App
# Install assets Android npm install && npm run build -- --mode=android # Install assets iOS npm install && npm run build -- --mode=ios # Run on iOS simulator/device (macOS only) php artisan native:run ios # Run on Android emulator/device php artisan native:run android # Hot reloading php artisan native:watch ios php artisan native:watch android
License
Open-sourced software licensed under the MIT license.