Skip to content

Commit 01747d6

Browse files
committed
docs: update minimum PHP version to 8.1 and correct code block syntax in README.md
1 parent 2459791 commit 01747d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ composer require bbsnly/chartjs-php
2222

2323
Minimum Requirements:
2424

25-
- PHP version: 8.2 or higher
25+
- PHP version: 8.1 or higher
2626
- ChartJS version: 2.0 or higher
2727

2828
## Usage
@@ -64,7 +64,7 @@ $chart->toHtml('my_chart'); // Returns the HTML and JavaScript code for the char
6464

6565
In the example below we will use the `toHtml` method to generate the HTML and JavaScript code for the chart.
6666

67-
```php
67+
```html
6868
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
6969

7070
<div>
@@ -76,7 +76,7 @@ In the example below we will use the `toHtml` method to generate the HTML and Ja
7676

7777
In the example below we will use the `toJson` method to generate the JSON representation of the chart data.
7878

79-
```php
79+
```html
8080
<div>
8181
<canvas id="myChart"></canvas>
8282
</div>

0 commit comments

Comments
 (0)