Skip to content

Commit dbc34df

Browse files
authored
Merge pull request #254 from danielbair/danielbair-patch-1
Include complete manual installation instructions
2 parents 1de0a0a + d124351 commit dbc34df

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ PHPPresentation requires the following:
4848

4949
### Installation
5050

51+
#### Composer method
52+
5153
It is recommended that you install the PHPPresentation library [through composer](http://getcomposer.org/). To do so, add
5254
the following lines to your ``composer.json``.
5355

@@ -59,14 +61,25 @@ the following lines to your ``composer.json``.
5961
}
6062
```
6163

62-
Alternatively, you can download the latest release from the [releases page](https://github.com/PHPOffice/PHPPresentation/releases).
63-
In this case, you will have to register the autoloader. Register autoloading is required only if you do not use composer in your project.
64+
#### Manual download method
65+
66+
Alternatively, you can download the latest release from the [releases page](https://github.com/PHPOffice/PHPPresentation/releases).
67+
In this case, you will have to register the autoloader.
68+
(Register autoloading is required only if you do not use composer in your project.)
6469

6570
```php
6671
require_once 'path/to/PhpPresentation/src/PhpPresentation/Autoloader.php';
6772
\PhpOffice\PhpPresentation\Autoloader::register();
6873
```
6974

75+
You will also need to download the latest PHPOffice/Common release from its [releases page](https://github.com/PHPOffice/Common/releases).
76+
And you will also have to register its autoloader, too.
77+
78+
```php
79+
require_once 'path/to/PhpOffice/Common/src/Common/Autoloader.php';
80+
\PhpOffice\Common\Autoloader::register();
81+
```
82+
7083
## Getting started
7184

7285
The following is a basic usage example of the PHPPresentation library.
@@ -75,6 +88,8 @@ The following is a basic usage example of the PHPPresentation library.
7588
// with your own install
7689
require_once 'src/PhpPresentation/Autoloader.php';
7790
\PhpOffice\PhpPresentation\Autoloader::register();
91+
require_once 'src/Common/Autoloader.php';
92+
\PhpOffice\Common\Autoloader::register();
7893

7994
// with Composer
8095
require_once 'vendor/autoload.php';

src/PhpPresentation/Shape/Line.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function __construct($fromX, $fromY, $toX, $toY)
4343
$this->setOffsetY($fromY);
4444
$this->setWidth($toX - $fromX);
4545
$this->setHeight($toY - $fromY);
46-
4746
}
4847

4948
/**

src/PhpPresentation/Writer/ODPresentation/Content.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,5 @@ protected function writeStylePartShadow(XMLWriter $objWriter, Shadow $oShadow)
13431343
}
13441344
$objWriter->writeAttribute('draw:shadow-opacity', (100 - $oShadow->getAlpha()) . '%');
13451345
$objWriter->writeAttribute('style:mirror', 'none');
1346-
13471346
}
13481347
}

tests/PhpPresentation/Tests/Slide/TransitionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,5 @@ public function testTransitionType()
8888
$this->assertNull($object->getTransitionType());
8989
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide\\Transition', $object->setTransitionType(Transition::TRANSITION_RANDOM));
9090
$this->assertEquals(Transition::TRANSITION_RANDOM, $object->getTransitionType());
91-
9291
}
9392
}

tests/PhpPresentation/Tests/Writer/ODPresentation/ObjectsChartTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ public function testAxisFont()
8686
$this->assertEquals('normal', $oXMLDoc->getElementAttribute($element, 'fo:font-style', 'Object 1/content.xml'));//Italic YAxis
8787
$this->assertEquals('16pt', $oXMLDoc->getElementAttribute($element, 'fo:font-size', 'Object 1/content.xml'));//Size YAxis
8888
$this->assertEquals('Arial', $oXMLDoc->getElementAttribute($element, 'fo:font-family', 'Object 1/content.xml'));//Size YAxis
89-
9089
}
9190

9291
public function testLegend()

0 commit comments

Comments
 (0)