Skip to content

Commit cb552a5

Browse files
julianrichieclaude
andcommitted
docs: update README PHP requirement to 8.1 and fix code fences
Aligns the badge and Requirements with composer.json (php >=8.1) and repairs the broken markdown fences around the searchCount example. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5bca132 commit cb552a5

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# ODXProxy Client for PHP
22
![Static Badge](https://img.shields.io/badge/License-MIT-green)
3-
![Static Badge](https://img.shields.io/badge/php-%3E%3D7.4-white?labelColor=%23474A8A&color=%23787CB5)
3+
![Static Badge](https://img.shields.io/badge/php-%3E%3D8.1-white?labelColor=%23474A8A&color=%23787CB5)
44

55

66
A high-performance, low-footprint, zero-dependency PHP client for interacting with Odoo instances via the ODXProxy Gateway.
77
This library is designed to be lightweight (using native curl and json extensions only) while maintaining strict type safety and security.
88

99
### Requirements
10-
- PHP >= 7.4
10+
- PHP >= 8.1
1111
- Extensions: ext-curl, ext-json
1212

1313
### Installation
@@ -48,12 +48,14 @@ Combines searching and reading in one optimized call.
4848
```php
4949
$domain = [['type', '=', 'invoice']];
5050
$records = Odx::searchRead('account.move', $domain);
51-
searchCount
51+
```
52+
53+
#### searchCount
5254
Get the number of records matching a domain.
53-
code
54-
PHP
55+
```php
5556
$count = Odx::searchCount('sale.order', [['state', '=', 'sale']]);
5657
```
58+
5759
#### read
5860
Read specific fields from specific IDs.
5961
```php

0 commit comments

Comments
 (0)