Skip to content

mpadinhabrandao/phalcon-error-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phalcon Car Manufacturer Example

This is a simple example demonstrating Phalcon 5.9 with PHP 8.4 using SQLite database. It shows the relationship between car manufacturers and their car models.

Requirements

  • PHP 8.4
  • Phalcon 5.9
  • PDO SQLite extension

Project Structure

  • /app/Models/ - Contains the Manufacturer and CarModel models
  • /app/config.php - Database configuration
  • /app/bootstrap.php - Application bootstrap and database initialization
  • /data/ - SQLite database location
  • example.php - Example script showing queries

Setup

  1. Install dependencies:
composer install
  1. Run the example:
php example.php

The example demonstrates two ways to query the data:

  1. Using Phalcon ORM with relationships
  2. Using raw SQL with joins

The database will be automatically created with sample data when running the example.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages