Skip to content

Commit 2e59885

Browse files
committed
Keep documentation in a single place and link to it
Fixes #191 Closes #192
1 parent 5520bf5 commit 2e59885

File tree

5 files changed

+35
-33
lines changed

5 files changed

+35
-33
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Want to contribute?
2+
3+
If you would like to contribute, here are some notes and guidelines:
4+
5+
- All new development happens on feature/fix branches referenced with the GitHub issue number, and are then merged to the develop branch; so the develop branch is always the most up-to-date, working code
6+
- The master branch only contains tagged releases
7+
- If you are going to be submitting a pull request, please fork from develop, and submit your pull request back as a fix/feature branch referencing the GitHub issue number
8+
- Code changes must be validated by PHP-CS-Fixer and PHP_CodeSniffer (via `./vendor/bin/php-cs-fixer fix --verbose && ./vendor/bin/phpcs samples/ src/ tests/ --standard=PSR2 -n`)
9+
- [Helpful article about forking](https://help.github.com/articles/fork-a-repo/ "Forking a GitHub repository")
10+
- [Helpful article about pull requests](https://help.github.com/articles/using-pull-requests/ "Pull Requests")

README.md

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,14 @@ Develop:
1616

1717
PhpSpreadsheet is a library written in pure PHP and providing a set of classes that allow you to read from and to write to different spreadsheet file formats, like Excel and LibreOffice Calc.
1818

19-
## File formats supported
19+
## Documentation
2020

21-
|Format |Reading|Writing|
22-
|--------------------------------------------|:-----:|:-----:|
23-
|Open Document Format/OASIS (.ods) |||
24-
|Office Open XML (.xlsx) Excel 2007 and above|||
25-
|BIFF 8 (.xls) Excel 97 and above |||
26-
|BIFF 5 (.xls) Excel 95 || |
27-
|SpreadsheetML (.xml) Excel 2003 || |
28-
|Gnumeric || |
29-
|HTML |||
30-
|SYLK || |
31-
|CSV |||
32-
|PDF (using either the tcPDF, DomPDF or mPDF libraries, which need to be installed separately)| ||
21+
Read more about it, including install instructions, in the official documentation, either at the online version:
3322

34-
## Requirements
23+
https://phpspreadsheet.readthedocs.io
3524

36-
* PHP version 5.6 or higher
37-
* PHP extension php_zip enabled
38-
* PHP extension php_xml enabled
39-
* PHP extension php_gd2 enabled (optional, but required for exact column width autocalculation)
25+
Or directly in this repository in the folder `docs/`.
4026

41-
## PHP version support
42-
43-
Support for PHP versions will only be maintained for a period of six months beyond the end-of-life of that PHP version
44-
45-
## Want to contribute?
46-
47-
If you would like to contribute, here are some notes and guidelines:
48-
- All new development happens on feature/fix branches referenced with the GitHub issue number, and are then merged to the develop branch; so the develop branch is always the most up-to-date, working code
49-
- The master branch only contains tagged releases
50-
- If you are going to be submitting a pull request, please fork from develop, and submit your pull request back as a fix/feature branch referencing the GitHub issue number
51-
- Code changes must be validated by PHP-CS-Fixer and PHP_CodeSniffer (via `./vendor/bin/php-cs-fixer fix --verbose && ./vendor/bin/phpcs samples/ src/ tests/ --standard=PSR2 -n`)
52-
- [Helpful article about forking](https://help.github.com/articles/fork-a-repo/ "Forking a GitHub repository")
53-
- [Helpful article about pull requests](https://help.github.com/articles/using-pull-requests/ "Pull Requests")
5427

5528
## PHPExcel vs PhpSpreadsheet ?
5629

docs/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ PhpSpreadsheet is a library written in pure PHP and providing a set of
66
classes that allow you to read from and to write to different
77
spreadsheet file formats, like Excel and LibreOffice Calc.
88

9+
## File formats supported
10+
11+
|Format |Reading|Writing|
12+
|--------------------------------------------|:-----:|:-----:|
13+
|Open Document Format/OASIS (.ods) |||
14+
|Office Open XML (.xlsx) Excel 2007 and above|||
15+
|BIFF 8 (.xls) Excel 97 and above |||
16+
|BIFF 5 (.xls) Excel 95 || |
17+
|SpreadsheetML (.xml) Excel 2003 || |
18+
|Gnumeric || |
19+
|HTML |||
20+
|SYLK || |
21+
|CSV |||
22+
|PDF (using either the tcPDF, DomPDF or mPDF libraries, which need to be installed separately)| ||
23+
924
# Getting started
1025

1126
## Software requirements
@@ -17,6 +32,10 @@ The following software is required to develop using PhpSpreadsheet:
1732
- PHP extension php\_xml enabled
1833
- PHP extension php\_gd2 enabled (if not compiled in)
1934

35+
### PHP version support
36+
37+
Support for PHP versions will only be maintained for a period of six months beyond the end-of-life of that PHP version
38+
2039
## Installation
2140

2241
Use [composer](https://getcomposer.org/) to install PhpSpreadsheet into your project:

samples/Header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</ul>
5555
<ul class="nav navbar-nav navbar-right">
5656
<li><a href="https://github.com/PHPOffice/PHPSpreadsheet"><i class="fa fa-github fa-lg" title="GitHub"></i>&nbsp;</a></li>
57-
<li><a href="http://phpspreadsheet.readthedocs.org/en/develop/"><i class="fa fa-book fa-lg" title="Docs"></i>&nbsp;</a></li>
57+
<li><a href="https://phpspreadsheet.readthedocs.io"><i class="fa fa-book fa-lg" title="Docs"></i>&nbsp;</a></li>
5858
<li><a href="http://twitter.com/PHPOffice"><i class="fa fa-twitter fa-lg" title="Twitter"></i>&nbsp;</a></li>
5959
</ul>
6060
</div>

samples/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<p>&nbsp;</p>
2020
<p>
2121
<a class="btn btn-lg btn-primary" href="https://github.com/PHPOffice/PHPSpreadsheet" role="button"><i class="fa fa-github fa-lg" title="GitHub"></i> Fork us on Github!</a>
22-
<a class="btn btn-lg btn-primary" href="http://phpspreadsheet.readthedocs.org/en/develop/" role="button"><i class="fa fa-book fa-lg" title="Docs"></i> Read the Docs</a>
22+
<a class="btn btn-lg btn-primary" href="https://phpspreadsheet.readthedocs.io" role="button"><i class="fa fa-book fa-lg" title="Docs"></i> Read the Docs</a>
2323
</p>
2424
</div>
2525
<?php

0 commit comments

Comments
 (0)