Skip to content

Commit 82b11b7

Browse files
committed
Updated readme file
1 parent 569e778 commit 82b11b7

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

README.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
1-
# dbengine
1+
# CommonPHP - Database Library
2+
3+
CommonPHP's Database Library is an advanced toolkit for database interaction and management in PHP applications. It offers a comprehensive set of features for connecting to databases, constructing queries, executing them, and handling results efficiently and securely.
4+
5+
## Features
6+
7+
- **Connection Management**: Simplifies the setup and management of database connections.
8+
- **Query Builder**: Offers a fluent interface for constructing SQL queries to prevent syntax errors and SQL injection vulnerabilities.
9+
- **Type Conversion**: Provides an extensible system for converting between PHP types and database types.
10+
- **Exception Handling**: Includes detailed exceptions for precise error handling in database operations.
11+
12+
## Components
13+
14+
The library is structured into several key components, including the Connection Manager, Query Builder, and various type converters. It also defines interfaces and contracts for extendability, alongside a suite of exceptions for robust error management.
15+
16+
## Requirements
17+
18+
Requires PHP 8.1 or newer and is built to integrate seamlessly with other CommonPHP libraries.
19+
20+
## Installation
21+
22+
Use Composer to install:
23+
24+
```shell
25+
# There is not yet a composer package for this library
26+
```
27+
### Basic Usage
28+
Initialize the Connection Manager and use the Query Builder to create and execute database queries. Type converters can be used to handle complex data types, and exceptions are thrown for any errors encountered during database operations.
29+
30+
## Extending the Library
31+
Custom type converters can be implemented by adhering to the provided interfaces, enhancing the library's flexibility and adaptability to different database systems and requirements.
32+
33+
## Documentation
34+
For detailed examples and usage instructions, refer to the source code and PHPDoc comments within each component.
35+
36+
## Contributing
37+
Contributions are welcome, following the contribution guidelines provided in the repository.
38+
39+
## Testing
40+
The library includes unit tests using PHPUnit. Instructions for running tests are provided, encouraging contributions to maintain high test coverage.
41+
42+
## License
43+
Licensed under the MIT License, promoting open and permissive usage in projects.

0 commit comments

Comments
 (0)