Download the PHP package tonka/astro without Composer
On this page you can find all versions of the php package tonka/astro. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package astro
Tonka Astro ⚛️
The official React Starter Kit for the Tonka Framework.
Tonka Astro provides a seamless integration between your PHP backend and your React frontend. It comes pre-configured with InertiaJS, DriftQL, and Tonka Router, offering a development experience similar to Laravel's Inertia stack, but optimized for the Tonka ecosystem.
🌟 Key Features
- ⚛️ React + Vite: A modern, blazing-fast frontend environment with Hot Module Replacement (HMR).
- 🚀 InertiaJS: Build single-page applications without building an API. Server-side routing meets client-side rendering.
- 🧠 DriftQL Integration: Access your Elegant ORM models directly in your JSX with the powerful
<Elegant>component. - 🛣️ Tonka Router: Use your backend named routes in your React components effortlessly.
- 🛠️ Zero Config: Out-of-the-box configuration for TypeScript, Tailwind CSS (optional), and build tools.
📦 Installation
Install the package via Composer into your Tonka project:
Navigate to the astro-app directory, then run:
This will scaffold the frontend structure and install NPM dependencies.
🚀 Quick Start
Once installed, your resources/js directory is ready to go.
1. The Entry Point
Your React app is automatically wired to your backend via Inertia.
2. Fetching Data with DriftQL
Query your backend database without writing API calls. Use the <Elegant> component to bind data to DOM elements or use Render Props.
3. Navigation with Tonka Router
Navigate using your backend route names. Tonka Router handles URL generation automatically based on your Spark configuration.
📁 Project Structure
The kit organizes your frontend code cleanly within the Tonka structure:
⚙️ Configuration
Frontend Config (drift.config.js)
Located at the root of your project, generated by Astro.
Backend Config (config/spark.php)
Configure which routes are visible to the frontend and apply access policies.
🛠️ Development
Start the Vite development server:
Build for production:
📚 Learn More
- Tonka Framework Docs: Learn about the backend.
- DriftQL Docs: Master the frontend ORM.
- Tonka Router Docs: Understand dynamic routing.
- InertiaJS Docs: Learn the client-side protocol.
📝 License
MIT
All versions of astro with dependencies
clicalmani/console Version ^2.7.0
clicalmani/database Version ^3.3.8
clicalmani/foundation Version ^3.4.0
clicalmani/psr Version ^1.1.0
clicalmani/routing Version ^2.5.0
clicalmani/validation Version ^3.2.0
clicalmani/xpower Version ^1.2.0
inertia/tonka-adapter Version ^1.2.0
symfony/event-dispatcher Version ^7.4
symfony/mailer Version ^7.4
tonka/driftql Version ^1.6.0
tonka/spark Version ^1.3.0