Skip to content

Commit 98b9a3b

Browse files
committed
Fixed the sample in Readme.md - GH-114
1 parent 2f45ce0 commit 98b9a3b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Read more about PHPPresentation:
1919
- [Requirements](#requirements)
2020
- [Installation](#installation)
2121
- [Getting started](#getting-started)
22-
- [Known issues](#known-issues)
2322
- [Contributing](#contributing)
2423
- [Developers' Documentation](http://phppowerpoint.readthedocs.org/)
2524
- [API Documentation](http://phpoffice.github.io/PHPPresentation/docs/master/)
@@ -73,9 +72,18 @@ require_once 'path/to/PhpPresentation/src/PhpPresentation/Autoloader.php';
7372
The following is a basic usage example of the PHPPresentation library.
7473

7574
```php
75+
// with your own install
7676
require_once 'src/PhpPresentation/Autoloader.php';
7777
\PhpOffice\PhpPresentation\Autoloader::register();
7878

79+
// with Composer
80+
require_once 'vendor/autoload.php';
81+
82+
use PhpOffice\PhpPresentation\PhpPowerpoint;
83+
use PhpOffice\PhpPresentation\IOFactory;
84+
use PhpOffice\PhpPresentation\Style\Color;
85+
use PhpOffice\PhpPresentation\Style\Alignment;
86+
7987
$objPHPPowerPoint = new PhpPresentation();
8088

8189
// Create slide

0 commit comments

Comments
 (0)