Skip to content

Commit

Permalink
Merge pull request #41 from Djuki/develop
Browse files Browse the repository at this point in the history
Make package psr-4 compliant. Classes autoload with composers autoloader
  • Loading branch information
Progi1984 committed Aug 4, 2014
2 parents 6e1a265 + 0b46e93 commit 2274275
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Features
- PowerPoint97 Reader : Implement Basic Reader - @Progi1984 GH-15 GH-14 GH-4
- ODPresentation Writer : Ability to set auto shrink text - @Progi1984 GH-28
- Make package PSR-4 compliant. Autoload classes by composer out of the box - @Djuki GH-41

### Bugfix
- PowerPoint2007 Writer : Powerpoint Repair Error in Office 2010 - @Progi1984 GH-39
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ the following lines to your ``composer.json``.
```

Alternatively, you can download the latest release from the [releases page](https://github.com/PHPOffice/PHPPowerPoint/releases).
In this case, you will have to register the autoloader.
In this case, you will have to register the autoloader. Register autoloading is required only if you do not use composer in your project.

```php
require_once 'path/to/PhpPowerpoint/src/PhpPowerpoint/Autoloader.php';
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"autoload": {
"psr-0": {
"PHPPowerPoint": "src/"
},
"psr-4": {
"PhpOffice\\PhpPowerpoint\\": "src/PhpPowerpoint/"
}
}
}

0 comments on commit 2274275

Please sign in to comment.