Skip to content

Commit 88e8527

Browse files
committed
Fix composer autoload
1 parent aafbf54 commit 88e8527

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,26 @@ There are also libraries to create new Excel documents from scratch, or for just
1616

1717
`php-xlsx-fast-editor` addresses the need of quickly reading and writing & editing existing Excel documents.
1818

19-
## Examples
19+
## Use
20+
21+
Via [Composer](https://packagist.org/packages/alexandrainst/php-xlsx-fast-editor):
22+
23+
```sh
24+
composer require alexandrainst/php-xlsx-fast-editor
25+
```
26+
27+
or manually:
2028

2129
```php
22-
// Use composer or load manually:
2330
require 'vendor/alexandrainst/XlsxFastEditor/autoload.php';
31+
```
32+
33+
34+
## Examples
35+
36+
```php
37+
<?php
38+
2439
use alexandrainst\XlsxFastEditor\XlsxFastEditor;
2540

2641
$xlsxFastEditor = new XlsxFastEditor('test.xlsx');

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"autoload": {
5656
"psr-4": {
57-
"alexandrainst\\XlsxFastEditor\\": "src/PhpSpreadsheet"
57+
"alexandrainst\\XlsxFastEditor\\": "src/"
5858
}
5959
},
6060
"config": {

0 commit comments

Comments
 (0)