Download the PHP package pnbarbeito/ondine-skeleton without Composer
On this page you can find all versions of the php package pnbarbeito/ondine-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pnbarbeito/ondine-skeleton
More information about pnbarbeito/ondine-skeleton
Files in pnbarbeito/ondine-skeleton
Package ondine-skeleton
Short Description Skeleton project to start an Ondine-based application
License MIT
Informations about the package ondine-skeleton
Ondine Skeleton
A minimal application skeleton for quickly bootstrapping new projects with the Ondine PHP microframework. Get a fully functional REST API with authentication up and running in minutes.
✨ Features
- 🚀 Rapid Setup: Working API in under 5 minutes
- 🔐 JWT Authentication: Secure login with refresh tokens
- 👥 User Management: Full CRUD for users and profiles
- 📚 Interactive Docs: Built-in Swagger UI at
/docs - 🗄️ Database Ready: SQLite (dev) or MariaDB/MySQL (prod)
- 🧩 Extensible: Easy to add controllers, routes, and middleware
📦 Installation
Via Composer Create-Project
🚀 Quick Start
-
Install dependencies:
-
Configure environment:
-
Run migrations:
-
Start the server:
- Test it:
- Frontend: http://localhost:8000
- API Docs: http://localhost:8000/docs
� Production Deployment
The skeleton includes a complete Docker-based production setup in the docker/ folder:
docker-compose.prod.yml: Production-ready container orchestration with Nginx, PHP-FPM, and MariaDBDockerfile: Multi-stage build for optimized PHP containernginx.conf: Nginx configuration with FastCGI proxy and static file serving- Environment setup: Pre-configured for production with proper security settings
Quick Production Setup
-
Navigate to docker folder:
-
Configure environment:
-
Deploy:
- Run migrations:
The application will be available at http://localhost (or your configured domain).
📖 Full documentation: See
docker/README.mdanddocker/README.es.mdfor detailed production deployment guides in English and Spanish.
�📋 API Endpoints
The skeleton provides ready-to-use REST endpoints under /api:
Authentication
POST /api/login- User loginPOST /api/refresh- Refresh JWT tokenPOST /api/logout- Logout userGET /api/me- Get current user info
Users (CRUD)
GET /api/users- List usersGET /api/users/{id}- Get user by IDPOST /api/users- Create userPUT /api/users/{id}- Update userDELETE /api/users/{id}- Delete user
Profiles
GET /api/profiles- List profilesGET /api/profiles/{id}- Get profile by ID
Example Usage
Login and get a token:
Use the token for authenticated requests:
📁 Project Structure
⚙️ Configuration
Environment Variables
Copy config/.env.example to config/.env and configure:
Database
SQLite (Default - Development):
- File:
data/database.sqlite - No additional setup required
MariaDB/MySQL (Production):
🛠️ Development
Running Tests
Test Coverage
Migrations
Adding New Features
- Controllers: Add to
src/Controllers/ - Routes: Register in
public/index.php - Middleware: Add to
src/Middleware/ - Migrations: Create in
migrations/
🔧 API Documentation
Interactive Swagger UI available at http://localhost:8000/docs
- Automatically captures JWT tokens from login responses
- Test all endpoints directly from the browser
- View request/response schemas
🐛 Troubleshooting
Permission Errors in Docker
Use named volumes for persistent storage or run migrations locally.
Database Connection Issues
- Verify
.envconfiguration - Ensure database server is running
- Check user permissions
Port Conflicts
Change the port in the PHP server command:
🤝 Contributing
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Links
- Ondine Framework - Main framework repository
- Packagist - Composer package
- Documentation - Full documentation
Built with ❤️ using the Ondine microframework.