diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000..48edc26187
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,21 @@
+# build config
+/.scrutinizer.yml export-ignore
+/.github export-ignore
+/php_cs.dist export-ignore
+/phpmd.xml.dist export-ignore
+/phpstan.neon export-ignore
+
+/composer.lock export-ignore
+
+# git files
+/.gitignore export-ignore
+/.gitattributes export-ignore
+
+# project directories
+/build export-ignore
+/docs export-ignore
+/samples export-ignore
+
+# tests
+/phpunit.xml.dist export-ignore
+/tests export-ignore
diff --git a/.github/ISSUE_TEMPLATE/1_bug_report.yml b/.github/ISSUE_TEMPLATE/1_bug_report.yml
new file mode 100644
index 0000000000..ea335468a5
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/1_bug_report.yml
@@ -0,0 +1,65 @@
+name: 🐛 Bug Report
+description: Create a report to help improve PHPWord
+labels: [ "Bug Report" ]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ ### ❗️ Read this before submitting your bug report:
+ - **Write in English/French.** Reports in all other languages will be closed.
+ - **Provide as much detail as possible**
+ - Attachments : Error logs, Screenshots, Document files (generated and expected).
+ - If the issue cannot be reproduced, it cannot be fixed.
+ - type: textarea
+ id: what-happened
+ attributes:
+ label: Describe the bug and add attachments
+ description: What went wrong? If possible, add screenshots, error logs, document files (generated and expected) or screen recordings to help explain your problem.
+ validations:
+ required: true
+ - type: textarea
+ id: expected-behavior
+ attributes:
+ label: Expected behavior
+ description: A clear and concise description of what you expected to happen.
+ validations:
+ required: true
+ - type: textarea
+ id: steps-reproduce
+ attributes:
+ label: Steps to reproduce
+ description: Please provide a code sample that reproduces the issue.
+ placeholder: |
+ ```php
+ addSection();
+ $section->...
+ ```
+ validations:
+ required: true
+ - type: input
+ id: phpword-version
+ attributes:
+ label: PHPWord version(s) where the bug happened
+ placeholder: "e.g., 1.2.0 or master"
+ validations:
+ required: true
+ - type: input
+ id: php-version
+ attributes:
+ label: PHP version(s) where the bug happened
+ placeholder: "e.g., 7.1 or 8.2"
+ validations:
+ required: true
+ - type: checkboxes
+ attributes:
+ label: Priority
+ description: Funded tickets have a higher priority.
+ options:
+ - label: I want to crowdfund the bug fix (with [@algora-io](https://docs.algora.io/bounties/overview)) and fund a community developer.
+ required: false
+ - label: I want to pay the bug fix and fund a maintainer for that. (Contact @Progi1984)
+ required: false
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/2_feature_request.yml b/.github/ISSUE_TEMPLATE/2_feature_request.yml
new file mode 100644
index 0000000000..bf3539c372
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/2_feature_request.yml
@@ -0,0 +1,35 @@
+name: 💡 Feature request
+description: Suggest an idea for this project
+labels: [ "Change Request" ]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ ### ❗️ Read this before submitting your bug report:
+ - **Write in English/French.** Reports in all other languages will be closed.
+ - **Provide as much detail as possible**
+ - Attachments : Error logs, Screenshots, Document files (generated and expected).
+ - If the issue cannot be reproduced, it cannot be fixed.
+ - type: textarea
+ id: problem
+ attributes:
+ label: Describe the problem
+ description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+ validations:
+ required: true
+ - type: textarea
+ id: expected-behavior
+ attributes:
+ label: Describe the expected behavior
+ description: A clear and concise description of what you expected to happen. If possible, add screenshots, document files (expected).
+ validations:
+ required: true
+ - type: checkboxes
+ attributes:
+ label: Priority
+ description: Funded tickets have a higher priority.
+ options:
+ - label: I want to crowdfund the feature (with [@algora-io](https://docs.algora.io/bounties/overview)) and fund a community developer.
+ required: false
+ - label: I want to pay the feature and fund a maintainer for that. (Contact @Progi1984)
+ required: false
\ No newline at end of file
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000000..b91f1bd4ac
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,12 @@
+### Description
+
+Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
+
+Fixes # (issue)
+
+### Checklist:
+
+- [ ] My CI is :green_circle:
+- [ ] I have covered by unit tests my new code (check build/coverage for coverage report)
+- [ ] I have updated the [documentation](https://github.com/PHPOffice/PHPWord/tree/master/docs) to describe the changes
+- [ ] I have updated the [changelog](https://github.com/PHPOffice/PHPWord/blob/master/docs/changes/1.x/1.5.0.md)
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000000..68ac78ad4c
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,8 @@
+version: 2
+updates:
+- package-ecosystem: composer
+ directory: "/"
+ schedule:
+ interval: monthly
+ time: "11:00"
+ open-pull-requests-limit: 10
diff --git a/.github/support.yml b/.github/support.yml
new file mode 100644
index 0000000000..c1b039ccac
--- /dev/null
+++ b/.github/support.yml
@@ -0,0 +1,15 @@
+# Label used to mark issues as support requests
+supportLabel: Question
+# Comment to post on issues marked as support requests. Add a link
+# to a support page, or set to `false` to disable
+supportComment: >
+ This looks like a support question. Please ask your support questions on
+ [StackOverflow](http://stackoverflow.com/questions/tagged/phpword),
+ or [Gitter](https://gitter.im/PHPOffice/PHPWord).
+
+ Thank you for your contributions.
+
+# Whether to close issues marked as support requests
+close: true
+# Whether to lock issues marked as support requests
+lock: false
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000000..7a1c2a6ea7
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,51 @@
+name: Deploy
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ ### MkDocs
+ - name: Setup Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.x
+ - name: Install Python Dependencies
+ run: pip install mkdocs-material autolink-references-mkdocs-plugin
+ - name: Build documentation
+ run: mkdocs build --site-dir public
+ ### PHPUnit
+ - name: Setup PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: 8.1
+ extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, simplexml, xml, xmlreader, xmlwriter, zip, zlib
+ coverage: xdebug
+ - name: Create directory public/coverage
+ run: mkdir ./public/coverage
+ - name: Install PHP Dependencies
+ run: composer install --ansi --prefer-dist --no-interaction --no-progress
+ - name: Build Coverage Report
+ run: XDEBUG_MODE=coverage ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./public/coverage
+ ### PHPDoc
+ - name: Create directory public/docs
+ run: mkdir ./public/docs
+ - name: Install PhpDocumentor
+ run: wget https://phpdoc.org/phpDocumentor.phar && chmod +x phpDocumentor.phar
+ - name: Build Documentation
+ run: ./phpDocumentor.phar run -d ./src -t ./public/docs
+
+ ### Deploy
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ if: github.ref == 'refs/heads/master'
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./public
diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml
new file mode 100644
index 0000000000..0e2e9ea96d
--- /dev/null
+++ b/.github/workflows/php.yml
@@ -0,0 +1,124 @@
+name: PHPWord
+on: [push, pull_request]
+jobs:
+ php-cs-fixer:
+ name: PHP CS Fixer
+ runs-on: ubuntu-latest
+ steps:
+ - name: Setup PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: '8.3'
+ extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
+ - uses: actions/checkout@v2
+
+ - name: Validate composer config
+ run: composer validate --strict
+
+ - name: Composer Install
+ run: composer global require friendsofphp/php-cs-fixer
+
+ - name: Add environment path
+ run: export PATH="$PATH:$HOME/.composer/vendor/bin"
+
+ - name: Run PHPCSFixer
+ run: php-cs-fixer fix --dry-run --diff
+
+ phpmd:
+ name: PHP Mess Detector
+ runs-on: ubuntu-latest
+ steps:
+ - name: Setup PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: '8.4'
+ extensions: gd, xml, zip
+ - uses: actions/checkout@v2
+
+ - name: Composer Install
+ run: composer install --ansi --prefer-dist --no-interaction --no-progress
+
+ - name: Run phpmd
+ run: ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist --exclude "src/PhpWord/Shared/PCLZip/*"
+
+ phpstan:
+ name: PHP Static Analysis
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ # Disabled PHPStan in '7.1'
+ php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
+ steps:
+ - name: Setup PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ extensions: gd, xml, zip
+ - uses: actions/checkout@v2
+
+ - name: Composer Install
+ run: composer install --ansi --prefer-dist --no-interaction --no-progress
+
+ - name: Run phpstan
+ run: ./vendor/bin/phpstan analyse -c phpstan.neon.dist
+
+ phpunit:
+ name: PHPUnit ${{ matrix.php }}
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
+ steps:
+ - name: Setup PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ extensions: gd, xml, zip
+ coverage: ${{ (matrix.php == '7.3') && 'xdebug' || 'none' }}
+
+ - uses: actions/checkout@v2
+
+ - name: Composer Install
+ run: composer install --ansi --prefer-dist --no-interaction --no-progress
+
+ - name: Run phpunit
+ if: matrix.php != '7.3'
+ run: ./vendor/bin/phpunit -c phpunit.xml.dist --no-coverage
+
+ - name: Run phpunit
+ if: matrix.php == '7.3'
+ run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/clover.xml
+
+ - name: Upload coverage results to Coveralls
+ if: matrix.php == '7.3'
+ env:
+ COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
+ chmod +x php-coveralls.phar
+ php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv
+
+ samples:
+ name: Check samples
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
+ steps:
+ - name: Setup PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ extensions: gd, xml, zip
+ coverage: xdebug
+
+ - uses: actions/checkout@v2
+
+ - name: Composer Install
+ run: composer install --ansi --prefer-dist --no-interaction --no-progress
+
+ - name: Generate samples files
+ run: composer run samples
diff --git a/.github_changelog_generator b/.github_changelog_generator
new file mode 100644
index 0000000000..787995f82f
--- /dev/null
+++ b/.github_changelog_generator
@@ -0,0 +1,8 @@
+user=PHPOffice
+project=PHPWord
+
+since-tag=0.18.1
+future-release=0.18.2
+
+issues=false
+pulls=true
diff --git a/.gitignore b/.gitignore
index 810a7b0ae1..6918df72e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,15 +1,28 @@
+/composer.lock
+
+
.DS_Store
._*
.Spotlight-V100
.Trashes
Thumbs.db
Desktop.ini
-composer.phar
+.idea
+_build
+/build
phpunit.xml
+composer.phar
+composer.lock
+vendor
+/report
+/build
+/samples/results
+/.settings
phpword.ini
/.buildpath
-/.idea
+/.scannerwork
/.project
-/.settings
-/build
-/vendor
+/nbproject
+/.php_cs.cache
+/.phpunit.result.cache
+/public
\ No newline at end of file
diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php
new file mode 100644
index 0000000000..cd46cac83e
--- /dev/null
+++ b/.php-cs-fixer.dist.php
@@ -0,0 +1,227 @@
+notName('pclzip.lib.php')
+ ->notName('OLERead.php')
+ ->in('samples')
+ ->in('src')
+ ->in('tests');
+
+$config = new PhpCsFixer\Config();
+$config
+ ->setRiskyAllowed(true)
+ ->setFinder($finder)
+ ->setCacheFile(sys_get_temp_dir() . '/php-cs-fixer' . preg_replace('~\W~', '-', __DIR__))
+ ->setRules([
+ 'align_multiline_comment' => true,
+ 'array_indentation' => true,
+ 'array_syntax' => ['syntax' => 'short'],
+ 'backtick_to_shell_exec' => true,
+ 'binary_operator_spaces' => true,
+ 'blank_line_after_namespace' => true,
+ 'blank_line_after_opening_tag' => true,
+ 'blank_line_before_statement' => true,
+ 'braces' => true,
+ 'cast_spaces' => true,
+ 'class_attributes_separation' => ['elements' => ['method' => 'one', 'property' => 'one']], // const are often grouped with other related const
+ 'class_definition' => false,
+ 'class_keyword_remove' => false, // ::class keyword gives us better support in IDE
+ 'combine_consecutive_issets' => true,
+ 'combine_consecutive_unsets' => true,
+ 'combine_nested_dirname' => true,
+ 'comment_to_phpdoc' => false, // interferes with annotations
+ 'compact_nullable_typehint' => true,
+ 'concat_space' => ['spacing' => 'one'],
+ 'constant_case' => true,
+ 'date_time_immutable' => false, // Break our unit tests
+ 'declare_equal_normalize' => true,
+ 'declare_strict_types' => false, // Too early to adopt strict types
+ 'dir_constant' => true,
+ 'doctrine_annotation_array_assignment' => true,
+ 'doctrine_annotation_braces' => true,
+ 'doctrine_annotation_indentation' => true,
+ 'doctrine_annotation_spaces' => true,
+ 'elseif' => true,
+ 'encoding' => true,
+ 'ereg_to_preg' => true,
+ 'escape_implicit_backslashes' => true,
+ 'explicit_indirect_variable' => false, // I feel it makes the code actually harder to read
+ 'explicit_string_variable' => false, // I feel it makes the code actually harder to read
+ 'final_class' => false, // We need non-final classes
+ 'final_internal_class' => true,
+ 'final_public_method_for_abstract_class' => false, // We need non-final methods
+ 'fopen_flag_order' => true,
+ 'fopen_flags' => true,
+ 'full_opening_tag' => true,
+ 'fully_qualified_strict_types' => true,
+ 'function_declaration' => true,
+ 'function_to_constant' => true,
+ 'function_typehint_space' => true,
+ 'general_phpdoc_annotation_remove' => ['annotations' => ['access', 'category', 'copyright', 'throws']],
+ 'global_namespace_import' => true,
+ 'header_comment' => false, // We don't use common header in all our files
+ 'heredoc_indentation' => false, // Requires PHP >= 7.3
+ 'heredoc_to_nowdoc' => false, // Not sure about this one
+ 'implode_call' => true,
+ 'include' => true,
+ 'increment_style' => true,
+ 'indentation_type' => true,
+ 'is_null' => true,
+ 'line_ending' => true,
+ 'linebreak_after_opening_tag' => true,
+ 'list_syntax' => ['syntax' => 'short'],
+ 'logical_operators' => true,
+ 'lowercase_cast' => true,
+ 'lowercase_keywords' => true,
+ 'lowercase_static_reference' => true,
+ 'magic_constant_casing' => true,
+ 'magic_method_casing' => true,
+ 'mb_str_functions' => false, // No, too dangerous to change that
+ 'method_argument_space' => true,
+ 'method_chaining_indentation' => true,
+ 'modernize_types_casting' => true,
+ 'multiline_comment_opening_closing' => true,
+ 'multiline_whitespace_before_semicolons' => true,
+ 'native_constant_invocation' => false, // Micro optimization that look messy
+ 'native_function_casing' => true,
+ 'native_function_invocation' => false, // I suppose this would be best, but I am still unconvinced about the visual aspect of it
+ 'native_function_type_declaration_casing' => true,
+ 'new_with_braces' => true,
+ 'no_alias_functions' => true,
+ 'no_alternative_syntax' => true,
+ 'no_binary_string' => true,
+ 'no_blank_lines_after_class_opening' => true,
+ 'no_blank_lines_after_phpdoc' => true,
+ 'no_blank_lines_before_namespace' => false, // we want 1 blank line before namespace
+ 'no_break_comment' => true,
+ 'no_closing_tag' => true,
+ 'no_empty_comment' => true,
+ 'no_empty_phpdoc' => true,
+ 'no_empty_statement' => true,
+ 'no_extra_blank_lines' => true,
+ 'no_homoglyph_names' => true,
+ 'no_leading_import_slash' => true,
+ 'no_leading_namespace_whitespace' => true,
+ 'no_mixed_echo_print' => true,
+ 'no_multiline_whitespace_around_double_arrow' => true,
+ 'no_null_property_initialization' => true,
+ 'no_php4_constructor' => true,
+ 'no_short_bool_cast' => true,
+ 'echo_tag_syntax' => ['format' => 'long'],
+ 'no_singleline_whitespace_before_semicolons' => true,
+ 'no_spaces_after_function_name' => true,
+ 'no_spaces_around_offset' => true,
+ 'no_spaces_inside_parenthesis' => true,
+ 'no_superfluous_elseif' => false, // Might be risky on a huge code base
+ 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
+ 'no_trailing_comma_in_list_call' => true,
+ 'no_trailing_comma_in_singleline_array' => true,
+ 'no_trailing_whitespace' => true,
+ 'no_trailing_whitespace_in_comment' => true,
+ 'no_unneeded_control_parentheses' => true,
+ 'no_unneeded_curly_braces' => true,
+ 'no_unneeded_final_method' => true,
+ 'no_unreachable_default_argument_value' => true,
+ 'no_unset_cast' => true,
+ 'no_unset_on_property' => true,
+ 'no_unused_imports' => true,
+ 'no_useless_else' => true,
+ 'no_useless_return' => true,
+ 'no_whitespace_before_comma_in_array' => true,
+ 'no_whitespace_in_blank_line' => true,
+ 'non_printable_character' => true,
+ 'normalize_index_brace' => true,
+ 'not_operator_with_space' => false, // No we prefer to keep '!' without spaces
+ 'not_operator_with_successor_space' => false, // idem
+ 'nullable_type_declaration_for_default_null_value' => true,
+ 'object_operator_without_whitespace' => true,
+ 'ordered_class_elements' => false, // We prefer to keep some freedom
+ 'ordered_imports' => true,
+ 'ordered_interfaces' => true,
+ 'php_unit_construct' => true,
+ 'php_unit_dedicate_assert' => true,
+ 'php_unit_dedicate_assert_internal_type' => true,
+ 'php_unit_expectation' => true,
+ 'php_unit_fqcn_annotation' => true,
+ 'php_unit_internal_class' => false, // Because tests are excluded from package
+ 'php_unit_method_casing' => true,
+ 'php_unit_mock' => true,
+ 'php_unit_mock_short_will_return' => true,
+ 'php_unit_namespaced' => true,
+ 'php_unit_no_expectation_annotation' => true,
+ 'phpdoc_order_by_value' => ['annotations' => ['covers']],
+ 'php_unit_set_up_tear_down_visibility' => true,
+ 'php_unit_size_class' => false, // That seems extra work to maintain for little benefits
+ 'php_unit_strict' => false, // We sometime actually need assertEquals
+ 'php_unit_test_annotation' => true,
+ 'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
+ 'php_unit_test_class_requires_covers' => false, // We don't care as much as we should about coverage
+ 'phpdoc_add_missing_param_annotation' => false, // Don't add things that bring no value
+ 'phpdoc_align' => false, // Waste of time
+ 'phpdoc_annotation_without_dot' => true,
+ 'phpdoc_indent' => true,
+ //'phpdoc_inline_tag' => true,
+ 'phpdoc_line_span' => false, // Unfortunately our old comments turn even uglier with this
+ 'phpdoc_no_access' => true,
+ 'phpdoc_no_alias_tag' => true,
+ 'phpdoc_no_empty_return' => true,
+ 'phpdoc_no_package' => true,
+ 'phpdoc_no_useless_inheritdoc' => true,
+ 'phpdoc_order' => true,
+ 'phpdoc_return_self_reference' => true,
+ 'phpdoc_scalar' => true,
+ 'phpdoc_separation' => true,
+ 'phpdoc_single_line_var_spacing' => true,
+ 'phpdoc_summary' => true,
+ 'phpdoc_to_comment' => false, // interferes with annotations
+ 'phpdoc_to_param_type' => false, // Because experimental, but interesting for one shot use
+ 'phpdoc_to_return_type' => false, // idem
+ 'phpdoc_trim' => true,
+ 'phpdoc_trim_consecutive_blank_line_separation' => true,
+ 'phpdoc_types' => true,
+ 'phpdoc_types_order' => true,
+ 'phpdoc_var_annotation_correct_order' => true,
+ 'phpdoc_var_without_name' => true,
+ 'pow_to_exponentiation' => true,
+ 'protected_to_private' => true,
+ 'psr_autoloading' => true,
+ 'random_api_migration' => true,
+ 'return_assignment' => false, // Sometimes useful for clarity or debug
+ 'return_type_declaration' => true,
+ 'self_accessor' => true,
+ 'self_static_accessor' => true,
+ 'semicolon_after_instruction' => false, // Buggy in `samples/index.php`
+ 'set_type_to_cast' => true,
+ 'short_scalar_cast' => true,
+ 'simple_to_complex_string_variable' => false, // Would differ from TypeScript without obvious advantages
+ 'simplified_null_return' => false, // Even if technically correct we prefer to be explicit
+ 'single_blank_line_at_eof' => true,
+ 'single_blank_line_before_namespace' => true,
+ 'single_class_element_per_statement' => true,
+ 'single_import_per_statement' => true,
+ 'single_line_after_imports' => true,
+ 'single_line_comment_style' => true,
+ 'single_line_throw' => false, // I don't see any reason for having a special case for Exception
+ 'single_quote' => true,
+ 'single_trait_insert_per_statement' => true,
+ 'space_after_semicolon' => true,
+ 'standardize_increment' => true,
+ 'standardize_not_equals' => true,
+ 'static_lambda' => false, // Risky if we can't guarantee nobody use `bindTo()`
+ 'strict_comparison' => false, // No, too dangerous to change that
+ 'strict_param' => false, // No, too dangerous to change that
+ 'string_line_ending' => true,
+ 'switch_case_semicolon_to_colon' => true,
+ 'switch_case_space' => true,
+ 'ternary_operator_spaces' => true,
+ 'ternary_to_null_coalescing' => true,
+ 'trailing_comma_in_multiline' => true,
+ 'trim_array_spaces' => true,
+ 'unary_operator_spaces' => true,
+ 'visibility_required' => ['elements' => ['property', 'method']], // not const
+ 'void_return' => true,
+ 'whitespace_after_comma_in_array' => true,
+ 'yoda_style' => false,
+ ]);
+
+return $config;
diff --git a/.scrutinizer.yml b/.scrutinizer.yml
deleted file mode 100644
index 6f982d8e89..0000000000
--- a/.scrutinizer.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-filter:
- excluded_paths: [ 'vendor/*', 'tests/*', 'samples/*', 'src/PhpWord/Shared/PCLZip/*' ]
-
-before_commands:
- - "composer install --prefer-source --dev"
-
-tools:
- php_code_sniffer:
- enabled: true
- config:
- standard: PSR2
- php_mess_detector:
- enabled: true
- config:
- ruleset: phpmd.xml.dist
- external_code_coverage:
- enabled: true
- timeout: 900
- php_cpd: true
- # php_sim: # Temporarily disabled to allow focus on things other than duplicates
- # min_mass: 40
- php_pdepend: true
- php_analyzer: true
- sensiolabs_security_checker: true
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 73dd68ec83..0000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,60 +0,0 @@
-language: php
-
-php:
- - 5.3.3
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - hhvm
-
-matrix:
- allow_failures:
- - php: hhvm
-
-env:
- global:
- - secure: "Sq+6bVtnPsu0mWX8DWQ+9bGAjxMcGorksUiHc4YIXEJsuDfVmVlH8tTD547IeCjDAx9MxXerZ2Z4HSjxTB70VEnJPvZMHI/EZn4Ny31YLHEthdZbV5Gd1h0TGp8VOzPKGShvGrtGBX6MvMfgpK4zuieVWbSfdKeecm8ZNLMpUd4="
-
-before_script:
- ## Packages
- - sudo apt-get -qq update > /dev/null
- - sudo apt-get -qq install graphviz > /dev/null
- ## Composer
- - composer self-update
- - composer install --prefer-source --dev
- ## PHP Copy/Paste Detector
- - curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar
- ## PHP Mess Detector
- - pear config-set preferred_state beta
- - printf "\n" | pecl install imagick
- - pear channel-discover pear.phpmd.org
- - pear channel-discover pear.pdepend.org
- - pear install --alldeps phpmd/PHP_PMD
- - phpenv rehash
- ## PHPLOC
- #- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
- ## PHPDocumentor
- - mkdir -p build/docs
- - mkdir -p build/coverage
-
-script:
- ## PHP_CodeSniffer
- - ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n --ignore=src/PhpWord/Shared/PCLZip
- ## PHP Copy/Paste Detector
- - php phpcpd.phar src/ tests/ --verbose
- ## PHP Mess Detector
- - phpmd src/,tests/ text ./phpmd.xml.dist --exclude pclzip.lib.php
- ## PHPLOC
- #- php phploc.phar src/
- ## PHPUnit
- - phpunit -c ./ --coverage-text --coverage-html ./build/coverage
- ## PHPDocumentor
- - vendor/bin/phpdoc.php -q -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/*/*" --template="responsive-twig"
-
-after_script:
- ## PHPDocumentor
- - bash .travis_shell_after_success.sh
- ## Scrutinizer
- - wget https://scrutinizer-ci.com/ocular.phar
- - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
diff --git a/.travis_shell_after_success.sh b/.travis_shell_after_success.sh
deleted file mode 100644
index 35c7a338b9..0000000000
--- a/.travis_shell_after_success.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-echo "--DEBUG--"
-echo "TRAVIS_REPO_SLUG: $TRAVIS_REPO_SLUG"
-echo "TRAVIS_PHP_VERSION: $TRAVIS_PHP_VERSION"
-echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST"
-
-if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPWord" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then
-
- echo -e "Publishing PHPDoc...\n"
-
- cp -R build/docs $HOME/docs-latest
- cp -R build/coverage $HOME/coverage-latest
-
- cd $HOME
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "travis-ci"
- git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/PHPOffice/PHPWord gh-pages > /dev/null
-
- cd gh-pages
- echo "--DEBUG : Suppression"
- git rm -rf ./docs/$TRAVIS_BRANCH
-
- echo "--DEBUG : Dossier"
- mkdir -p docs/$TRAVIS_BRANCH
- mkdir -p coverage/$TRAVIS_BRANCH
-
- echo "--DEBUG : Copie"
- cp -Rf $HOME/docs-latest/* ./docs/$TRAVIS_BRANCH/
- cp -Rf $HOME/coverage-latest/* ./coverage/$TRAVIS_BRANCH/
-
- echo "--DEBUG : Git"
- git add -f .
- git commit -m "PHPDocumentor (Travis Build: $TRAVIS_BUILD_NUMBER - Branch: $TRAVIS_BRANCH)"
- git push -fq origin gh-pages > /dev/null
-
- echo -e "Published PHPDoc to gh-pages.\n"
-
-fi
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index 59cbba6cf4..0000000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,282 +0,0 @@
-# Changelog
-
-This is the changelog between releases of PHPWord. Releases are listed in reverse chronological order with the latest version listed on top, while additions/changes in each release are listed in chronological order. Changes in each release are divided into three parts: added or change features, bugfixes, and miscellaneous improvements. Each line contains short information about the change made, the person who made it, and the related issue number(s) in GitHub.
-
-## 0.11.1 - 2 June 2014
-
-This is an immediate bugfix release for HTML reader.
-
-- HTML Reader: `
` and header tags puts no output - @canyildiz @ivanlanin GH-257
-
-## 0.11.0 - 1 June 2014
-
-This release marked the change of PHPWord license from LGPL 2.1 to LGPL 3. Four new elements were added: TextBox, ListItemRun, Field, and Line. Relative and absolute positioning for images and textboxes were added. Writer classes were refactored into parts, elements, and styles. ODT and RTF features were enhanced. Ability to add elements to PHPWord object via HTML were implemented. RTF and HTML reader were initiated.
-
-### Features
-
-- Image: Ability to define relative and absolute positioning - @basjan GH-217
-- Footer: Conform footer with header by adding firstPage, evenPage and by inheritance - @basjan @ivanlanin GH-219
-- Element: New `TextBox` element - @basjan @ivanlanin GH-228 GH-229 GH-231
-- HTML: Ability to add elements to PHPWord object via html - @basjan GH-231
-- Element: New `ListItemRun` element that can add a list item with inline formatting like a textrun - @basjan GH-235
-- Table: Ability to add table inside a cell (nested table) - @ivanlanin GH-149
-- RTF Writer: UTF8 support for RTF: Internal UTF8 text is converted to Unicode before writing - @ivanlanin GH-158
-- Table: Ability to define table width (in percent and twip) and position - @ivanlanin GH-237
-- RTF Writer: Ability to add links and page breaks in RTF - @ivanlanin GH-196
-- ListItemRun: Remove fontStyle parameter because ListItemRun is inherited from TextRun and TextRun doesn't have fontStyle - @ivanlanin
-- Config: Ability to use a config file to store various common settings - @ivanlanin GH-200
-- ODT Writer: Enable inline font style in TextRun - @ivanlanin
-- ODT Writer: Enable underline, strike/doublestrike, smallcaps/allcaps, superscript/subscript font style - @ivanlanin
-- ODT Writer: Enable section and column - @ivanlanin
-- PDF Writer: Add TCPDF and mPDF as optional PDF renderer library - @ivanlanin
-- ODT Writer: Enable title element and custom document properties - @ivanlanin
-- ODT Reader: Ability to read standard and custom document properties - @ivanlanin
-- Word2007 Writer: Enable the missing custom document properties writer - @ivanlanin
-- Image: Enable "image float left" - @ivanlanin GH-244
-- RTF Writer: Ability to write document properties - @ivanlanin
-- RTF Writer: Ability to write image - @ivanlanin
-- Element: New `Field` element - @basjan GH-251
-- RTF Reader: Basic RTF reader - @ivanlanin GH-72 GH-252
-- Element: New `Line` element - @basjan GH-253
-- Title: Ability to apply numbering in heading - @ivanlanin GH-193
-- HTML Reader: Basic HTML reader - @ivanlanin GH-80 GH-254
-- RTF Writer: Basic table writing - @ivanlanin GH-245
-
-### Bugfixes
-
-- Header: All images added to the second header were assigned to the first header - @basjan GH-222
-- Conversion: Fix conversion from cm to pixel, pixel to cm, and pixel to point - @basjan GH-233 GH-234
-- PageBreak: Page break adds new line in the beginning of the new page - @ivanlanin GH-150
-- Image: `marginLeft` and `marginTop` cannot accept float value - @ivanlanin GH-248
-- Title: Orphan `w:fldChar` caused OpenOffice to crash when opening DOCX - @ivanlanin GH-236
-
-### Deprecated
-
-- Static classes `Footnotes`, `Endnotes`, and `TOC`
-- `Writer\Word2007\Part`: `Numbering::writeNumbering()`, `Settings::writeSettings()`, `WebSettings::writeWebSettings()`, `ContentTypes::writeContentTypes()`, `Styles::writeStyles()`, `Document::writeDocument()` all changed into `write()`
-- `Writer\Word2007\Part\DocProps`: Split into `Writer\Word2007\Part\DocPropsCore` and `Writer\Word2007\Part\DocPropsApp`
-- `Element\Title::getBookmarkId()` replaced by `Element\Title::getRelationId()`
-- `Writer\HTML::writeDocument`: Replaced by `Writer\HTML::getContent`
-
-### Miscellaneous
-
-- License: Change the project license from LGPL 2.1 into LGPL 3.0 - GH-211
-- Word2007 Writer: New `Style\Image` class - @ivanlanin
-- Refactor: Replace static classes `Footnotes`, `Endnotes`, and `TOC` with `Collections` - @ivanlanin GH-206
-- QA: Reactivate `phpcpd` and `phpmd` on Travis - @ivanlanin
-- Refactor: PHPMD recommendation: Change all `get...` method that returns `boolean` into `is...` or `has...` - @ivanlanin
-- Docs: Create gh-pages branch for API documentation - @Progi1984 GH-154
-- QA: Add `.scrutinizer.yml` and include `composer.lock` for preparation to Scrutinizer - @ivanlanin GH-186
-- Writer: Refactor writer parts using composite pattern - @ivanlanin
-- Docs: Show code quality and test code coverage badge on README
-- Style: Change behaviour of `set...` function of boolean properties; when none is defined, assumed true - @ivanlanin
-- Shared: Unify PHP ZipArchive and PCLZip features into PhpWord ZipArchive - @ivanlanin
-- Docs: Create VERSION file - @ivanlanin
-- QA: Improve dan update requirement check in `samples` folder - @ivanlanin
-
-
-## 0.10.1 - 21 May 2014
-
-This is a bugfix release for `php-zip` requirement in Composer.
-
-- Change Composer requirements for php-zip from `require` to `suggest` - @bskrtich GH-246
-
-## 0.10.0 - 4 May 2014
-
-This release marked heavy refactorings on internal code structure with the creation of some abstract classes to reduce code duplication. `Element` subnamespace is introduced in this release to replace `Section`. Word2007 reader capability is greatly enhanced. Endnote is introduced. List numbering is now customizable. Basic HTML and PDF writing support is enabled. Basic ODText reader is introduced.
-
-### Features
-
-- Image: Get image dimensions without EXIF extension - @andrew-kzoo GH-184
-- Table: Add `tblGrid` element for Libre/Open Office table sizing - @gianis6 GH-183
-- Footnote: Ability to insert textbreak in footnote `$footnote->addTextBreak()` - @ivanlanin
-- Footnote: Ability to style footnote reference mark by using `FootnoteReference` style - @ivanlanin
-- Font: Add `bgColor` to font style to define background using HEX color - @jcarignan GH-168
-- Table: Add `exactHeight` to row style to define whether row height should be exact or atLeast - @jcarignan GH-168
-- Element: New `CheckBox` element for sections and table cells - @ozilion GH-156
-- Settings: Ability to use PCLZip as alternative to ZipArchive - @bskrtich @ivanlanin GH-106 GH-140 GH-185
-- Template: Ability to find & replace variables in headers & footers - @dgudgeon GH-190
-- Template: Ability to clone & delete block of text using `cloneBlock` and `deleteBlock` - @diego-vieira GH-191
-- TOC: Ability to have two or more TOC in one document and to set min and max depth for TOC - @Pyreweb GH-189
-- Table: Ability to add footnote in table cell - @ivanlanin GH-187
-- Footnote: Ability to add image in footnote - @ivanlanin GH-187
-- ListItem: Ability to add list item in header/footer - @ivanlanin GH-187
-- CheckBox: Ability to add checkbox in header/footer - @ivanlanin GH-187
-- Link: Ability to add link in header/footer - @ivanlanin GH-187
-- Object: Ability to add object in header, footer, textrun, and footnote - @ivanlanin GH-187
-- Media: Add `Media::resetElements()` to reset all media data - @juzi GH-19
-- General: Add `Style::resetStyles()` - @ivanlanin GH-187
-- DOCX Reader: Ability to read header, footer, footnotes, link, preservetext, textbreak, pagebreak, table, list, image, and title - @ivanlanin
-- Endnote: Ability to add endnotes - @ivanlanin
-- ListItem: Ability to create custom list and reset list number - @ivanlanin GH-10 GH-198
-- ODT Writer: Basic table writing support - @ivanlanin
-- Image: Keep image aspect ratio if only 1 dimension styled - @japonicus GH-194
-- HTML Writer: Basic HTML writer: text, textrun, link, title, textbreak, table, image (as Base64), footnote, endnote - @ivanlanin GH-203 GH-67 GH-147
-- PDF Writer: Basic PDF writer using DomPDF: All HTML element except image - @ivanlanin GH-68
-- DOCX Writer: Change `docProps/app.xml` `Application` to `PHPWord` - @ivanlanin
-- DOCX Writer: Create `word/settings.xml` and `word/webSettings.xml` dynamically - @ivanlanin
-- ODT Writer: Basic image writing - @ivanlanin
-- ODT Writer: Link writing - @ivanlanin
-- ODT Reader: Basic ODText Reader - @ivanlanin GH-71
-- Section: Ability to define gutter and line numbering - @ivanlanin
-- Font: Small caps, all caps, and double strikethrough - @ivanlanin GH-151
-- Settings: Ability to use measurement unit other than twips with `setMeasurementUnit` - @ivanlanin GH-199
-- Style: Remove `bgColor` from `Font`, `Table`, and `Cell` and put it into the new `Shading` style - @ivanlanin
-- Style: New `Indentation` and `Spacing` style - @ivanlanin
-- Paragraph: Ability to define first line and right indentation - @ivanlanin
-
-### Bugfixes
-
-- Footnote: Footnote content doesn't show footnote reference number - @ivanlanin GH-170
-- Documentation: Error in a function - @theBeerNut GH-195
-
-### Deprecated
-
-- `createTextRun` replaced by `addTextRun`
-- `createFootnote` replaced by `addFootnote`
-- `createHeader` replaced by `addHeader`
-- `createFooter` replaced by `addFooter`
-- `createSection` replaced by `addSection`
-- `Element\Footnote::getReferenceId` replaced by `Element\AbstractElement::getRelationId`
-- `Element\Footnote::setReferenceId` replaced by `Element\AbstractElement::setRelationId`
-- `Footnote::addFootnoteLinkElement` replaced by `Media::addElement`
-- `Footnote::getFootnoteLinkElements` replaced by `Media::getElements`
-- All current methods on `Media`
-- `Element\Link::getLinkSrc` replaced by `Element\Link::getTarget`
-- `Element\Link::getLinkName` replaced by `Element\Link::getText`
-- `Style\Cell::getDefaultBorderColor`
-
-### Miscellaneous
-
-- Documentation: Simplify page level docblock - @ivanlanin GH-179
-- Writer: Refactor writer classes and create a new `Write\AbstractWriter` abstract class - @ivanlanin GH-160
-- General: Refactor folders: `Element` and `Exception` - @ivanlanin GH-187
-- General: Remove legacy `HashTable` and `Shared\ZipStreamWrapper` and all related properties/methods - @ivanlanin GH-187
-- Element: New `AbstractElement` abstract class - @ivanlanin GH-187
-- Media: Refactor media class to use one method for all docPart (section, header, footer, footnote) - @ivanlanin GH-187
-- General: Remove underscore prefix from all private properties name - @ivanlanin GH-187
-- General: Move Section `Settings` to `Style\Section` - @ivanlanin GH-187
-- General: Give `Abstract` prefix and `Interface` suffix for all abstract classes and interfaces as per [PHP-FIG recommendation](https://github.com/php-fig/fig-standards/blob/master/bylaws/002-psr-naming-conventions.md) - @ivanlanin GH-187
-- Style: New `Style\AbstractStyle` abstract class - @ivanlanin GH-187
-- Writer: New 'ODText\Base` class - @ivanlanin GH-187
-- General: Rename `Footnote` to `Footnotes` to reflect the nature of collection - @ivanlanin
-- General: Add some unit tests for Shared & Element (100%!) - @Progi1984
-- Test: Add some samples and tests for image wrapping style - @brunocasado GH-59
-- Refactor: Remove Style\Tabs - @ivanlanin
-- Refactor: Apply composite pattern for writers - @ivanlanin
-- Refactor: Split `AbstractContainer` from `AbstractElement` - @ivanlanin
-- Refactor: Apply composite pattern for Word2007 reader - @ivanlanin
-
-## 0.9.1 - 27 Mar 2014
-
-This is a bugfix release for PSR-4 compatibility.
-
-- Fixed PSR-4 composer autoloader - @AntonTyutin
-
-## 0.9.0 - 26 Mar 2014
-
-This release marked the transformation to namespaces (PHP 5.3+).
-
-### Features
-
-- Image: Ability to use remote or GD images using `addImage()` on sections, headers, footer, cells, and textruns - @ivanlanin
-- Header: Ability to use remote or GD images using `addWatermark()` - @ivanlanin
-
-### Bugfixes
-
-- Preserve text doesn't render correctly when the text is not the first word, e.g. 'Page {PAGE}' - @ivanlanin
-
-### Miscellaneous
-
-- Move documentation to [Read The Docs](http://phpword.readthedocs.org/en/develop/) - @Progi1984 @ivanlanin GH-82
-- Reorganize and redesign samples folder - @ivanlanin GH-137
-- Use `PhpOffice\PhpWord` namespace for PSR compliance - @RomanSyroeshko @gabrielbull GH-159 GH-58
-- Restructure folders and change folder name `Classes` to `src` and `Tests` to `test` for PSR compliance - @RomanSyroeshko @gabrielbull
-- Compliance to phpDocumentor - @ivanlanin
-- Merge Style\TableFull into Style\Table. Style\TableFull is deprecated - @ivanlanin GH-160
-- Merge Section\MemoryImage into Section\Image. Section\Image is deprecated - @ivanlanin GH-160
-
-## 0.8.1 - 17 Mar 2014
-
-This is a bugfix release for image detection functionality.
-
-- Added fallback for computers that do not have exif_imagetype - @bskrtich, @gabrielbull
-
-## 0.8.0 - 15 Mar 2014
-
-This release merged a lot of improvements from the community. Unit tests introduced in this release and has reached 90% code coverage.
-
-### Features
-
-- Template: Permit to save a template generated as a file (PHPWord_Template::saveAs()) - @RomanSyroeshko GH-56 GH-57
-- Word2007: Support sections page numbering - @gabrielbull
-- Word2007: Added line height methods to mirror the line height settings in Word in the paragraph styling - @gabrielbull
-- Word2007: Added support for page header & page footer height - @JillElaine GH-5
-- General: Add ability to manage line breaks after image insertion - @bskrtich GH-6 GH-66 GH-84
-- Template: Ability to limit number of replacements performed by setValue() method of Template class - @RomanSyroeshko GH-52 GH-53 GH-85
-- Table row: Repeat as header row & allow row to break across pages - @ivanlanin GH-48 GH-86
-- Table: Table width in percentage - @ivanlanin GH-48 GH-86
-- Font: Superscript and subscript - @ivanlanin GH-48 GH-86
-- Paragraph: Hanging paragraph - @ivanlanin GH-48 GH-86
-- Section: Multicolumn and section break - @ivanlanin GH-48 GH-86
-- Template: Ability to apply XSL style sheet to Template - @RomanSyroeshko GH-46 GH-47 GH-83
-- General: PHPWord_Shared_Font::pointSizeToTwips() converter - @ivanlanin GH-87
-- Paragraph: Ability to define normal paragraph style with PHPWord::setNormalStyle() - @ivanlanin GH-87
-- Paragraph: Ability to define parent style (basedOn) and style for following paragraph (next) - @ivanlanin GH-87
-- Clone table rows on the fly when using a template document - @jeroenmoors GH-44 GH-88
-- Initial addition of basic footnote support - @deds GH-16
-- Paragraph: Ability to define paragraph pagination: widow control, keep next, keep lines, and page break before - @ivanlanin GH-92
-- General: PHPWord_Style_Font refactoring - @ivanlanin GH-93
-- Font: Use points instead of halfpoints internally. Conversion to halfpoints done during XML Writing. - @ivanlanin GH-93
-- Paragraph: setTabs() function - @ivanlanin GH-92
-- General: Basic support for TextRun on ODT and RTF - @ivanlanin GH-99
-- Reader: Basic Reader for Word2007 - @ivanlanin GH-104
-- TextRun: Allow Text Break in Text Run - @bskrtich GH-109
-- General: Support for East Asian fontstyle - @jhfangying GH-111 GH-118
-- Image: Use exif_imagetype to check image format instead of extension name - @gabrielbull GH-114
-- General: Setting for XMLWriter Compatibility option - @bskrtich GH-103
-- MemoryImage: Allow remote image when allow_url_open = on - @ivanlanin GH-122
-- TextBreak: Allow font and paragraph style for text break - @ivanlanin GH-18
-
-### Bugfixes
-
-- Fixed bug with cell styling - @gabrielbull
-- Fixed bug list items inside of cells - @gabrielbull
-- Adding a value that contains "&" in a template breaks it - @SiebelsTim GH-51
-- Example in README.md is broken - @Progi1984 GH-89
-- General: PHPWord_Shared_Drawing::centimetersToPixels() conversion - @ivanlanin GH-94
-- Footnote: Corrupt DOCX reported by MS Word when sections > 1 and not every sections have footnote - @ivanlanin GH-125
-
-### Miscellaneous
-
-- UnitTests - @Progi1984
-
-## 0.7.0 - 28 Jan 2014
-
-This is the first release after a long development hiatus in [CodePlex](https://phpword.codeplex.com/). This release initialized ODT and RTF Writer, along with some other new features for the existing Word2007 Writer, e.g. tab, multiple header, rowspan and colspan. [Composer](https://packagist.org/packages/phpoffice/phpword) and [Travis](https://travis-ci.org/PHPOffice/PHPWord) were added.
-
-### Features
-
-- Implement RTF Writer - @Progi1984 GH-1
-- Implement ODT Writer - @Progi1984 GH-2
-- Word2007: Add rowspan and colspan to cells - @kaystrobach
-- Word2007: Support for tab stops - @RLovelett
-- Word2007: Support Multiple headers - @RLovelett
-- Word2007: Wrapping Styles to Images - @gabrielbull
-- Added support for image wrapping style - @gabrielbull
-
-### Bugfixes
-
-- "Warning: Invalid error type specified in ...\PHPWord.php on line 226" is thrown when the specified template file is not found - @RomanSyroeshko GH-32
-- PHPWord_Shared_String.IsUTF8 returns FALSE for Cyrillic UTF-8 input - @RomanSyroeshko GH-34
-- Temporary files naming logic in PHPWord_Template can lead to a collision - @RomanSyroeshko GH-38
-
-### Miscellaneous
-
-- Add superscript/subscript styling in Excel2007 Writer - @MarkBaker
-- add indentation support to paragraphs - @deds
-- Support for Composer - @Progi1984 GH-27
-- Basic CI with Travis - @Progi1984
-- Added PHPWord_Exception and exception when could not copy the template - @Progi1984
-- IMPROVED: Moved examples out of Classes directory - @Progi1984
-- IMPROVED: Advanced string replace in setValue for Template - @Esmeraldo CP-49
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 34985610b0..ac262a0f34 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,14 +1,31 @@
# Contributing to PHPWord
-PHPWord is build by the crowd and for the crowd. Every contributions are welcomed; either by [submitting](https://github.com/PHPOffice/PHPWord/issues) bug issues or suggesting improvements, or in a more active form like [requesting](https://github.com/PHPOffice/PHPWord/pulls) a pull.
+PHPWord is built by the crowd and for the crowd. Every contribution is welcome; either by [reporting a bug](https://github.com/PHPOffice/PHPWord/issues/new?labels=Bug+Report&template=bug_report.md) or [suggesting improvements](https://github.com/PHPOffice/PHPWord/issues/new?labels=Change+Request&template=feature_request.md), or in a more active form like [requesting a pull](https://github.com/PHPOffice/PHPWord/pulls).
-We want to create a high quality document writer and reader library that people can use with more confidence and less bugs. We want to collaborate happily, code joyfully, and get a life merrily. Thus, below are some guidelines that we expect to be followed by each contributor.
+We want to create a high quality document writer and reader library that people can use with more confidence and fewer bugs. We want to collaborate happily, code joyfully, and live merrily. Thus, below are some guidelines that we expect to be followed by each contributor:
-- **Be brief, but be bold**: State your issues briefly, but speak out your ideas loudly, even if you can't or don't know how to implement it right away. The world will be better with limitless innovations.
-- **Code in PSR**: We use PHP Standards Recommendation (PSR) from as the PHP Framework Interoperability Group (PHP-FIG). If you're not familiar with this standard, please [familiarize yourself now](https://github.com/php-fig/fig-standards). Use [PHPCodeSniffer](http://pear.php.net/package/PHP_CodeSniffer/) to check your code against this standard.
-- **Test your code**: Nobody else knows your code better than you. So, please, test your own code before submitting your pull request. PHPWord uses [PHPUnit](http://phpunit.de/) as our testing framework.
-- **Request pull in separate branch**: Do not submit your request to the master branch, but create a separate branch named specifically for the issue that you addressed. Read [GitHub manual](https://help.github.com/articles/using-pull-requests) to find out more about this. If you are new to GitHub, read [this short manual](https://help.github.com/articles/fork-a-repo) to get you familiar with forks and how git works in general.
+- **Be brief, but be bold**. State your issues briefly. But speak out your ideas loudly, even if you can't or don't know how to implement them right away. The world will be better with limitless innovations.
+- **Follow PHP-FIG standards**. We follow PHP Standards Recommendations (PSRs) by [PHP Framework Interoperability Group](http://www.php-fig.org/). If you're not familiar with these standards, [familiarize yourself now](https://github.com/php-fig/fig-standards). Also, please run `composer fix` to automatically fix your code to match these recommendations.
+- **Test your code**. No one knows your code better than you, so we depend on you to test the changes you make before pull request submission. We use [PHPUnit](https://phpunit.de/) for our testing purposes and request that you use this tool too. Tests can be ran with `composer test`. [Documentation for writing tests with PHPUnit is available on Read the Docs.](https://phpunit.readthedocs.io)
+- **Use best practices when submitting pull requests**. Create a separate branch named specifically for the issue that you are addressing. Read the [GitHub manual](https://help.github.com/articles/about-pull-requests) to learn more about pull requests and GitHub. If you are new to GitHub, read [this short manual](https://help.github.com/articles/fork-a-repo) to get yourself familiar with forks and how git works in general. [This video](http://www.youtube.com/watch?v=-zvHQXnBO6c) explains how to synchronize your fork on GitHub with the upstream branch from PHPWord.
+
+## Getting Started
+
+1. [Clone](https://help.github.com/en/articles/cloning-a-repository) [PHPWord](https://github.com/PHPOffice/PHPWord/)
+2. [Install Composer](https://getcomposer.org/download/) if you don't already have it
+3. Open your terminal and:
+ 1. Switch to the directory PHPWord was cloned to (e.g., `cd ~/Projects/PHPWord/`)
+ 2. Run `composer install` to install the dependencies
+
+You're ready to start working on PHPWord! Tests belong in the `/tests/PhpWord/` directory, the source code is in `/src/PhpWord/`, and any documentation should go in `/docs/`. Familiarize yourself with the codebase and try your hand at fixing [one of our outstanding issues](https://github.com/PHPOffice/PHPWord/issues). Before you get started, check the [existing pull requests](https://github.com/PHPOffice/PHPWord/pulls) to make sure no one else is already working on it.
+
+Once you have an issue you want to start working on, you'll need to write tests for it, and then you can start implementing the changes necessary to pass the new tests. To run the tests, you can run one of the following commands in your terminal:
+
+- `composer test-no-coverage` to run all of the tests
+- `composer test` to run all of the tests and generate test coverage reports
+
+When you're ready to submit your new (and fully tested) feature, ensure `composer check` passes and [submit a pull request to PHPWord](https://github.com/PHPOffice/PHPWord/issues/new).
That's it. Thank you for your interest in PHPWord, and welcome!
-May the Force be with you.
\ No newline at end of file
+May the Force be with you.
diff --git a/LICENSE b/LICENSE
index 3f6a8c3865..aebd12b0ed 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
PHPWord, a pure PHP library for reading and writing word processing documents.
-Copyright (c) 2010-2014 PHPWord.
+Copyright (c) 2010-2025 PHPWord.
PHPWord is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3 as published by
diff --git a/README.md b/README.md
index ecbe135440..e080d32da8 100644
--- a/README.md
+++ b/README.md
@@ -1,19 +1,30 @@
# 
-[](https://packagist.org/packages/phpoffice/phpword)
-[](https://travis-ci.org/PHPOffice/PHPWord)
-[](https://scrutinizer-ci.com/g/PHPOffice/PHPWord/)
-[](https://scrutinizer-ci.com/g/PHPOffice/PHPWord/)
-[](https://packagist.org/packages/phpoffice/phpword)
-[](https://packagist.org/packages/phpoffice/phpword)
+[](https://packagist.org/packages/phpoffice/phpword)
+[](https://coveralls.io/github/PHPOffice/PHPWord?branch=master)
+[](https://packagist.org/packages/phpoffice/phpword)
+[](https://packagist.org/packages/phpoffice/phpword)
+
+Branch Master : [](https://github.com/PHPOffice/PHPWord/actions/workflows/php.yml)
PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft [Office Open XML](http://en.wikipedia.org/wiki/Office_Open_XML) (OOXML or OpenXML), OASIS [Open Document Format for Office Applications](http://en.wikipedia.org/wiki/OpenDocument) (OpenDocument or ODF), [Rich Text Format](http://en.wikipedia.org/wiki/Rich_Text_Format) (RTF), HTML, and PDF.
-PHPWord is an open source project licensed under the terms of [LGPL version 3](https://github.com/PHPOffice/PHPWord/blob/develop/COPYING.LESSER). PHPWord is aimed to be a high quality software product by incorporating [continuous integration](https://travis-ci.org/PHPOffice/PHPWord) and [unit testing](http://phpoffice.github.io/PHPWord/coverage/develop/). You can learn more about PHPWord by reading the [Developers' Documentation](http://phpword.readthedocs.org/) and the [API Documentation](http://phpoffice.github.io/PHPWord/docs/develop/).
+PHPWord is an open source project licensed under the terms of [LGPL version 3](COPYING.LESSER). PHPWord is aimed to be a high quality software product by incorporating [continuous integration](https://github.com/PHPOffice/PHPWord/actions) and unit testing. You can learn more about PHPWord by reading the [Developers' Documentation](https://phpoffice.github.io/PHPWord/).
+
+If you have any questions, please ask on [StackOverFlow](https://stackoverflow.com/questions/tagged/phpword)
+
+Read more about PHPWord:
+
+- [Features](#features)
+- [Requirements](#requirements)
+- [Installation](#installation)
+- [Getting started](#getting-started)
+- [Contributing](#contributing)
+- [Developers' Documentation](https://phpoffice.github.io/PHPWord/)
## Features
-With PHPWord, you can create DOCX, ODT, or RTF documents dynamically using your PHP 5.3+ scripts. Below are some of the things that you can do with PHPWord library:
+With PHPWord, you can create OOXML, ODF, or RTF documents dynamically using your PHP scripts. Below are some of the things that you can do with PHPWord library:
- Set document properties, e.g. title, subject, and creator.
- Create document sections with different settings, e.g. portrait/landscape, page size, and page numbering
@@ -30,92 +41,121 @@ With PHPWord, you can create DOCX, ODT, or RTF documents dynamically using your
- Insert list items as bulleted, numbered, or multilevel
- Insert hyperlinks
- Insert footnotes and endnotes
+- Insert drawing shapes (arc, curve, line, polyline, rect, oval)
+- Insert charts (pie, doughnut, bar, line, area, scatter, radar)
+- Insert form fields (textinput, checkbox, and dropdown)
- Create document from templates
-- Use XSL 1.0 style sheets to transform main document part of OOXML template
+- Use XSL 1.0 style sheets to transform headers, main document part, and footers of an OOXML template
- ... and many more features on progress
## Requirements
PHPWord requires the following:
-- PHP 5.3+
-- [Zip extension](http://php.net/manual/en/book.zip.php)
+- PHP 7.1+
- [XML Parser extension](http://www.php.net/manual/en/xml.installation.php)
+- [Laminas Escaper component](https://docs.laminas.dev/laminas-escaper/intro/)
+- [Zip extension](http://php.net/manual/en/book.zip.php) (optional, used to write OOXML and ODF)
- [GD extension](http://php.net/manual/en/book.image.php) (optional, used to add images)
-- [XMLWriter extension](http://php.net/manual/en/book.xmlwriter.php) (optional, used to write DOCX and ODT)
+- [XMLWriter extension](http://php.net/manual/en/book.xmlwriter.php) (optional, used to write OOXML and ODF)
- [XSL extension](http://php.net/manual/en/book.xsl.php) (optional, used to apply XSL style sheet to template )
-- [dompdf](https://github.com/dompdf/dompdf) (optional, used to write PDF)
+- [dompdf library](https://github.com/dompdf/dompdf) (optional, used to write PDF)
## Installation
-It is recommended that you install the PHPWord library [through composer](http://getcomposer.org/). To do so, add
-the following lines to your ``composer.json``.
+PHPWord is installed via [Composer](https://getcomposer.org/).
+To [add a dependency](https://getcomposer.org/doc/04-schema.md#package-links) to PHPWord in your project, either
-```json
-{
- "require": {
- "phpoffice/phpword": "dev-master"
- }
-}
+Run the following to use the latest stable version
+```sh
+composer require phpoffice/phpword
```
-
-Alternatively, you can download the latest release from the [releases page](https://github.com/PHPOffice/PHPWord/releases).
-In this case, you will have to register the autoloader.
-
-```php
-require_once 'path/to/PhpWord/src/PhpWord/Autoloader.php';
-\PhpOffice\PhpWord\Autoloader::register();
+or if you want the latest unreleased version
+```sh
+composer require phpoffice/phpword:dev-master
```
-## Usages
+## Getting started
-The following is a basic example of the PHPWord library. More examples are provided in the [samples folder](samples/).
+The following is a basic usage example of the PHPWord library.
```php
-$phpWord = new \PhpOffice\PhpWord\PhpWord();
+addSection();
-
-// After creating a section, you can append elements:
-$section->addText('Hello world!');
-
-// You can directly style your text by giving the addText function an array:
-$section->addText('Hello world! I am formatted.',
- array('name'=>'Tahoma', 'size'=>16, 'bold'=>true));
+// Creating the new document...
+$phpWord = new \PhpOffice\PhpWord\PhpWord();
-// If you often need the same style again you can create a user defined style
-// to the word document and give the addText function the name of the style:
-$phpWord->addFontStyle('myOwnStyle',
- array('name'=>'Verdana', 'size'=>14, 'color'=>'1B2232'));
-$section->addText('Hello world! I am formatted by a user defined style',
- 'myOwnStyle');
+/* Note: any element you append to a document must reside inside of a Section. */
-// You can also put the appended element to local object like this:
+// Adding an empty Section to the document...
+$section = $phpWord->addSection();
+// Adding Text element to the Section having font styled by default...
+$section->addText(
+ '"Learn from yesterday, live for today, hope for tomorrow. '
+ . 'The important thing is not to stop questioning." '
+ . '(Albert Einstein)'
+);
+
+/*
+ * Note: it's possible to customize font style of the Text element you add in three ways:
+ * - inline;
+ * - using named font style (new font style object will be implicitly created);
+ * - using explicitly created font style object.
+ */
+
+// Adding Text element with font customized inline...
+$section->addText(
+ '"Great achievement is usually born of great sacrifice, '
+ . 'and is never the result of selfishness." '
+ . '(Napoleon Hill)',
+ array('name' => 'Tahoma', 'size' => 10)
+);
+
+// Adding Text element with font customized using named font style...
+$fontStyleName = 'oneUserDefinedStyle';
+$phpWord->addFontStyle(
+ $fontStyleName,
+ array('name' => 'Tahoma', 'size' => 10, 'color' => '1B2232', 'bold' => true)
+);
+$section->addText(
+ '"The greatest accomplishment is not in never falling, '
+ . 'but in rising again after you fall." '
+ . '(Vince Lombardi)',
+ $fontStyleName
+);
+
+// Adding Text element with font customized using explicitly created font style object...
$fontStyle = new \PhpOffice\PhpWord\Style\Font();
$fontStyle->setBold(true);
-$fontStyle->setName('Verdana');
-$fontStyle->setSize(22);
-$myTextElement = $section->addText('Hello World!');
+$fontStyle->setName('Tahoma');
+$fontStyle->setSize(13);
+$myTextElement = $section->addText('"Believe you can and you\'re halfway there." (Theodor Roosevelt)');
$myTextElement->setFontStyle($fontStyle);
-// Finally, write the document:
+// Saving the document as OOXML file...
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
$objWriter->save('helloWorld.docx');
+// Saving the document as ODF file...
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'ODText');
$objWriter->save('helloWorld.odt');
-$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'RTF');
-$objWriter->save('helloWorld.rtf');
+// Saving the document as HTML file...
+$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'HTML');
+$objWriter->save('helloWorld.html');
+
+/* Note: we skip RTF, because it's not XML-based and requires a different example. */
+/* Note: we skip PDF, because "HTML-to-PDF" approach is used to create PDF documents. */
```
+More examples are provided in the [samples folder](samples/). For an easy access to those samples launch `php -S localhost:8000` in the samples directory then browse to [http://localhost:8000](http://localhost:8000) to view the samples.
+You can also read the [Developers' Documentation](https://phpoffice.github.io/PHPWord/) for more detail.
+
## Contributing
-We welcome everyone to contribute to PHPWord. Below are some of the things that you can do to contribute:
+We welcome everyone to contribute to PHPWord. Below are some of the things that you can do to contribute.
-- Read [our contributing guide](https://github.com/PHPOffice/PHPWord/blob/master/CONTRIBUTING.md)
-- [Fork us](https://github.com/PHPOffice/PHPWord/fork) and [request a pull](https://github.com/PHPOffice/PHPWord/pulls) to the [develop](https://github.com/PHPOffice/PHPWord/tree/develop) branch
-- Submit [bug reports or feature requests](https://github.com/PHPOffice/PHPWord/issues) to GitHub
-- Follow [@PHPWord](https://twitter.com/PHPWord) and [@PHPOffice](https://twitter.com/PHPOffice) on Twitter
+- Read [our contributing guide](CONTRIBUTING.md).
+- [Fork us](https://github.com/PHPOffice/PHPWord/fork) and [request a pull](https://github.com/PHPOffice/PHPWord/pulls) to the [master](https://github.com/PHPOffice/PHPWord/tree/master) branch.
+- Submit [bug reports or feature requests](https://github.com/PHPOffice/PHPWord/issues) to GitHub.
+- Follow [@PHPOffice](https://twitter.com/PHPOffice) on Twitter.
diff --git a/VERSION b/VERSION
deleted file mode 100644
index 027934ea1a..0000000000
--- a/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-0.11.1
\ No newline at end of file
diff --git a/composer.json b/composer.json
index 2f9a0915b0..08ef4ec927 100644
--- a/composer.json
+++ b/composer.json
@@ -1,14 +1,14 @@
{
"name": "phpoffice/phpword",
- "description": "PHPWord - A pure PHP library for reading and writing word processing documents (DOCX, ODT, RTF, HTML, PDF)",
+ "description": "PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)",
"keywords": [
- "PHP", "PhpOffice", "office", "PhpWord", "word", "template", "reader", "writer",
+ "PHP", "PHPOffice", "office", "PHPWord", "word", "template", "template processor", "reader", "writer",
"docx", "OOXML", "OpenXML", "Office Open XML", "ISO IEC 29500", "WordprocessingML",
- "RTF", "Rich Text Format", "doc", "odt", "OpenDocument", "PDF", "HTML"
+ "RTF", "Rich Text Format", "doc", "odt", "ODF", "OpenDocument", "PDF", "HTML"
],
- "homepage": "http://phpoffice.github.io",
+ "homepage": "https://phpoffice.github.io/PHPWord/",
"type": "library",
- "license": "LGPL-3.0",
+ "license": "LGPL-3.0-only",
"authors": [
{
"name": "Mark Baker"
@@ -20,7 +20,7 @@
},
{
"name": "Franck Lefevre",
- "homepage": "http://blog.rootslabs.net"
+ "homepage": "https://rootslabs.net/blog/"
},
{
"name": "Ivan Lanin",
@@ -29,30 +29,116 @@
{
"name": "Roman Syroeshko",
"homepage": "http://ru.linkedin.com/pub/roman-syroeshko/34/a53/994/"
+ },
+ {
+ "name": "Antoine de Troostembergh"
}
],
+ "scripts": {
+ "test": [
+ "@php vendor/bin/phpunit --color=always"
+ ],
+ "test-no-coverage": [
+ "@php vendor/bin/phpunit --color=always --no-coverage"
+ ],
+ "check": [
+ "@php vendor/bin/php-cs-fixer fix --ansi --dry-run --diff",
+ "@php vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist --exclude pclzip.lib.php",
+ "@test-no-coverage",
+ "@php vendor/bin/phpstan analyse --ansi"
+ ],
+ "fix": [
+ "@php vendor/bin/php-cs-fixer fix --ansi"
+ ],
+ "samples": [
+ "php samples/Sample_01_SimpleText.php",
+ "php samples/Sample_02_TabStops.php",
+ "php samples/Sample_03_Sections.php",
+ "php samples/Sample_04_Textrun.php",
+ "php samples/Sample_05_Multicolumn.php",
+ "php samples/Sample_06_Footnote.php",
+ "php samples/Sample_07_TemplateCloneRow.php",
+ "php samples/Sample_08_ParagraphPagination.php",
+ "php samples/Sample_09_Tables.php",
+ "php samples/Sample_10_EastAsianFontStyle.php",
+ "php samples/Sample_11_ReadWord97.php",
+ "php samples/Sample_11_ReadWord2007.php",
+ "php samples/Sample_12_HeaderFooter.php",
+ "php samples/Sample_13_Images.php",
+ "php samples/Sample_14_ListItem.php",
+ "php samples/Sample_15_Link.php",
+ "php samples/Sample_16_Object.php",
+ "php samples/Sample_17_TitleTOC.php",
+ "php samples/Sample_18_Watermark.php",
+ "php samples/Sample_19_TextBreak.php",
+ "php samples/Sample_20_BGColor.php",
+ "php samples/Sample_21_TableRowRules.php",
+ "php samples/Sample_22_CheckBox.php",
+ "php samples/Sample_23_TemplateBlock.php",
+ "php samples/Sample_24_ReadODText.php",
+ "php samples/Sample_25_TextBox.php",
+ "php samples/Sample_26_Html.php",
+ "php samples/Sample_27_Field.php",
+ "php samples/Sample_28_ReadRTF.php",
+ "php samples/Sample_29_Line.php",
+ "php samples/Sample_30_ReadHTML.php",
+ "php samples/Sample_31_Shape.php",
+ "php samples/Sample_32_Chart.php",
+ "php samples/Sample_33_FormField.php",
+ "php samples/Sample_34_SDT.php",
+ "php samples/Sample_35_InternalLink.php",
+ "php samples/Sample_36_RTL.php",
+ "php samples/Sample_37_Comments.php",
+ "php samples/Sample_38_Protection.php",
+ "php samples/Sample_39_TrackChanges.php",
+ "php samples/Sample_40_TemplateSetComplexValue.php",
+ "php samples/Sample_41_TemplateSetChart.php",
+ "php samples/Sample_42_TemplateSetCheckbox.php",
+ "php samples/Sample_43_RTLDefault.php",
+ "php samples/Sample_44_ExtractVariablesFromReaderWord2007.php",
+ "php samples/Sample_45_Autoloader.php"
+ ]
+ },
+ "scripts-descriptions": {
+ "test": "Runs all unit tests",
+ "test-no-coverage": "Runs all unit tests, without code coverage",
+ "check": "Runs PHP CheckStyle and PHP Mess detector",
+ "fix": "Fixes issues found by PHP-CS"
+ },
"require": {
- "php": ">=5.3.3",
- "ext-xml": "*"
+ "php": "^7.1|^8.0",
+ "ext-dom": "*",
+ "ext-gd": "*",
+ "ext-zip": "*",
+ "ext-json": "*",
+ "ext-xml": "*",
+ "phpoffice/math": "^0.3"
},
"require-dev": {
- "phpunit/phpunit": "3.7.*",
- "phpdocumentor/phpdocumentor":"2.*",
- "squizlabs/php_codesniffer": "1.*",
- "dompdf/dompdf":"0.6.*",
- "tecnick.com/tcpdf": "6.*",
- "mpdf/mpdf": "5.*"
+ "ext-libxml": "*",
+ "dompdf/dompdf": "^2.0 || ^3.0",
+ "friendsofphp/php-cs-fixer": "^3.3",
+ "mpdf/mpdf": "^7.0 || ^8.0",
+ "phpmd/phpmd": "^2.13",
+ "phpstan/phpstan": "^0.12.88 || ^1.0.0 || ^2.0.0",
+ "phpstan/phpstan-phpunit": "^1.0 || ^2.0",
+ "phpunit/phpunit": ">=7.0",
+ "symfony/process": "^4.4 || ^5.0",
+ "tecnickcom/tcpdf": "^6.5"
},
"suggest": {
- "ext-zip": "Used to write DOCX and ODT",
- "ext-gd2": "Used to add images",
- "ext-xmlwriter": "Used to write DOCX and ODT",
- "ext-xsl": "Used to apply XSL style sheet to template part",
- "dompdf/dompdf": "Used to write PDF"
+ "ext-xmlwriter": "Allows writing OOXML and ODF",
+ "ext-xsl": "Allows applying XSL style sheet to headers, to main document part, and to footers of an OOXML template",
+ "dompdf/dompdf": "Allows writing PDF"
},
"autoload": {
"psr-4": {
"PhpOffice\\PhpWord\\": "src/PhpWord"
}
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "PhpOffice\\PhpWordTests\\": "tests/PhpWordTests"
+ }
}
}
diff --git a/composer.lock b/composer.lock
deleted file mode 100644
index 172e564ef9..0000000000
--- a/composer.lock
+++ /dev/null
@@ -1,3283 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
- ],
- "hash": "91993ff980d11a416fcf3a7309a4044f",
- "packages": [
-
- ],
- "packages-dev": [
- {
- "name": "cilex/cilex",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Cilex/Cilex.git",
- "reference": "7acd965a609a56d0345e8b6071c261fbdb926cb5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Cilex/Cilex/zipball/7acd965a609a56d0345e8b6071c261fbdb926cb5",
- "reference": "7acd965a609a56d0345e8b6071c261fbdb926cb5",
- "shasum": ""
- },
- "require": {
- "cilex/console-service-provider": "1.*",
- "php": ">=5.3.3",
- "pimple/pimple": "~1.0",
- "symfony/finder": "~2.1",
- "symfony/process": "~2.1"
- },
- "require-dev": {
- "phpunit/phpunit": "3.7.*",
- "symfony/validator": "~2.1"
- },
- "suggest": {
- "monolog/monolog": ">=1.0.0",
- "symfony/validator": ">=1.0.0",
- "symfony/yaml": ">=1.0.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Cilex": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "mike.vanriel@naenius.com"
- }
- ],
- "description": "The PHP micro-framework for Command line tools based on the Symfony2 Components",
- "homepage": "http://cilex.github.com",
- "keywords": [
- "cli",
- "microframework"
- ],
- "time": "2014-03-29 14:03:13"
- },
- {
- "name": "cilex/console-service-provider",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Cilex/console-service-provider.git",
- "reference": "25ee3d1875243d38e1a3448ff94bdf944f70d24e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Cilex/console-service-provider/zipball/25ee3d1875243d38e1a3448ff94bdf944f70d24e",
- "reference": "25ee3d1875243d38e1a3448ff94bdf944f70d24e",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "pimple/pimple": "1.*@dev",
- "symfony/console": "~2.1"
- },
- "require-dev": {
- "cilex/cilex": "1.*@dev",
- "silex/silex": "1.*@dev"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Cilex\\Provider\\Console": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Mike van Riel",
- "email": "mike.vanriel@naenius.com"
- }
- ],
- "description": "Console Service Provider",
- "keywords": [
- "cilex",
- "console",
- "pimple",
- "service-provider",
- "silex"
- ],
- "time": "2012-12-19 10:50:58"
- },
- {
- "name": "doctrine/annotations",
- "version": "v1.1.2",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/annotations.git",
- "reference": "40db0c96985aab2822edbc4848b3bd2429e02670"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/annotations/zipball/40db0c96985aab2822edbc4848b3bd2429e02670",
- "reference": "40db0c96985aab2822edbc4848b3bd2429e02670",
- "shasum": ""
- },
- "require": {
- "doctrine/lexer": "1.*",
- "php": ">=5.3.2"
- },
- "require-dev": {
- "doctrine/cache": "1.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Annotations\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jonathan H. Wage",
- "email": "jonwage@gmail.com",
- "homepage": "http://www.jwage.com/",
- "role": "Creator"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com",
- "homepage": "http://www.instaclick.com"
- },
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Johannes M. Schmitt",
- "email": "schmittjoh@gmail.com",
- "homepage": "http://jmsyst.com",
- "role": "Developer of wrapped JMSSerializerBundle"
- }
- ],
- "description": "Docblock Annotations Parser",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "annotations",
- "docblock",
- "parser"
- ],
- "time": "2013-06-16 21:33:03"
- },
- {
- "name": "doctrine/lexer",
- "version": "v1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/lexer.git",
- "reference": "2f708a85bb3aab5d99dab8be435abd73e0b18acb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/lexer/zipball/2f708a85bb3aab5d99dab8be435abd73e0b18acb",
- "reference": "2f708a85bb3aab5d99dab8be435abd73e0b18acb",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Lexer\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com",
- "homepage": "http://www.instaclick.com"
- },
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com",
- "homepage": "http://jmsyst.com",
- "role": "Developer of wrapped JMSSerializerBundle"
- }
- ],
- "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "lexer",
- "parser"
- ],
- "time": "2013-01-12 18:59:04"
- },
- {
- "name": "dompdf/dompdf",
- "version": "v0.6.1",
- "source": {
- "type": "git",
- "url": "https://github.com/dompdf/dompdf.git",
- "reference": "cf7d8a0a27270418850cc7d7ea532159e5eeb3eb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dompdf/dompdf/zipball/cf7d8a0a27270418850cc7d7ea532159e5eeb3eb",
- "reference": "cf7d8a0a27270418850cc7d7ea532159e5eeb3eb",
- "shasum": ""
- },
- "require": {
- "phenx/php-font-lib": "0.2.*"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "include/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "LGPL"
- ],
- "authors": [
- {
- "name": "Fabien Ménager",
- "email": "fabien.menager@gmail.com"
- },
- {
- "name": "Brian Sweeney",
- "email": "eclecticgeek@gmail.com"
- }
- ],
- "description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter",
- "homepage": "https://github.com/dompdf/dompdf",
- "time": "2014-03-11 01:59:52"
- },
- {
- "name": "erusev/parsedown",
- "version": "0.9.4",
- "source": {
- "type": "git",
- "url": "https://github.com/erusev/parsedown.git",
- "reference": "d29ff18299210b52a75a631a70963e7c8b35b04f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/erusev/parsedown/zipball/d29ff18299210b52a75a631a70963e7c8b35b04f",
- "reference": "d29ff18299210b52a75a631a70963e7c8b35b04f",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Parsedown": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Emanuil Rusev",
- "email": "hello@erusev.com",
- "homepage": "http://erusev.com"
- }
- ],
- "description": "Parser for Markdown.",
- "homepage": "http://parsedown.org",
- "keywords": [
- "markdown",
- "parser"
- ],
- "time": "2014-02-06 12:16:14"
- },
- {
- "name": "jms/metadata",
- "version": "1.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/schmittjoh/metadata.git",
- "reference": "88ffa28bc987e4c26229fc84a2e541b6ed4e1459"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/schmittjoh/metadata/zipball/88ffa28bc987e4c26229fc84a2e541b6ed4e1459",
- "reference": "88ffa28bc987e4c26229fc84a2e541b6ed4e1459",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "require-dev": {
- "doctrine/cache": "~1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.5.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Metadata\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "Apache"
- ],
- "authors": [
- {
- "name": "Johannes M. Schmitt",
- "email": "schmittjoh@gmail.com",
- "homepage": "http://jmsyst.com",
- "role": "Developer of wrapped JMSSerializerBundle"
- }
- ],
- "description": "Class/method/property metadata management in PHP",
- "keywords": [
- "annotations",
- "metadata",
- "xml",
- "yaml"
- ],
- "time": "2013-11-05 23:02:36"
- },
- {
- "name": "jms/parser-lib",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/schmittjoh/parser-lib.git",
- "reference": "c509473bc1b4866415627af0e1c6cc8ac97fa51d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/schmittjoh/parser-lib/zipball/c509473bc1b4866415627af0e1c6cc8ac97fa51d",
- "reference": "c509473bc1b4866415627af0e1c6cc8ac97fa51d",
- "shasum": ""
- },
- "require": {
- "phpoption/phpoption": ">=0.9,<2.0-dev"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "JMS\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "Apache2"
- ],
- "description": "A library for easily creating recursive-descent parsers.",
- "time": "2012-11-18 18:08:43"
- },
- {
- "name": "jms/serializer",
- "version": "0.16.0",
- "source": {
- "type": "git",
- "url": "https://github.com/schmittjoh/serializer.git",
- "reference": "c8a171357ca92b6706e395c757f334902d430ea9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/c8a171357ca92b6706e395c757f334902d430ea9",
- "reference": "c8a171357ca92b6706e395c757f334902d430ea9",
- "shasum": ""
- },
- "require": {
- "doctrine/annotations": "1.*",
- "jms/metadata": "~1.1",
- "jms/parser-lib": "1.*",
- "php": ">=5.3.2",
- "phpcollection/phpcollection": "~0.1"
- },
- "require-dev": {
- "doctrine/orm": "~2.1",
- "doctrine/phpcr-odm": "~1.0.1",
- "jackalope/jackalope-doctrine-dbal": "1.0.*",
- "propel/propel1": "~1.7",
- "symfony/filesystem": "2.*",
- "symfony/form": "~2.1",
- "symfony/translation": "~2.0",
- "symfony/validator": "~2.0",
- "symfony/yaml": "2.*",
- "twig/twig": ">=1.8,<2.0-dev"
- },
- "suggest": {
- "symfony/yaml": "Required if you'd like to serialize data to YAML format."
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "0.15-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "JMS\\Serializer": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "Apache2"
- ],
- "authors": [
- {
- "name": "Johannes M. Schmitt",
- "email": "schmittjoh@gmail.com",
- "homepage": "http://jmsyst.com",
- "role": "Developer of wrapped JMSSerializerBundle"
- }
- ],
- "description": "Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.",
- "homepage": "http://jmsyst.com/libs/serializer",
- "keywords": [
- "deserialization",
- "jaxb",
- "json",
- "serialization",
- "xml"
- ],
- "time": "2014-03-18 08:39:00"
- },
- {
- "name": "knplabs/knp-menu",
- "version": "v1.1.2",
- "source": {
- "type": "git",
- "url": "https://github.com/KnpLabs/KnpMenu.git",
- "reference": "f8e867268f63f561c1adadd6cbb5d8524f921873"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/KnpLabs/KnpMenu/zipball/f8e867268f63f561c1adadd6cbb5d8524f921873",
- "reference": "f8e867268f63f561c1adadd6cbb5d8524f921873",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "require-dev": {
- "pimple/pimple": "*",
- "silex/silex": "1.0.*",
- "twig/twig": ">=1.2,<2.0-dev"
- },
- "suggest": {
- "pimple/pimple": "for the built-in implementations of the menu provider and renderer provider",
- "silex/silex": "for the integration with your silex application",
- "twig/twig": "for the TwigRenderer and the integration with your templates"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Knp\\Menu\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Christophe Coevoet",
- "email": "stof@notk.org"
- },
- {
- "name": "KnpLabs",
- "homepage": "http://knplabs.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://github.com/KnpLabs/KnpMenu/contributors"
- }
- ],
- "description": "An object oriented menu library",
- "homepage": "http://knplabs.com",
- "keywords": [
- "menu",
- "tree"
- ],
- "time": "2012-06-10 16:20:40"
- },
- {
- "name": "monolog/monolog",
- "version": "1.9.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/monolog.git",
- "reference": "65026b610f8c19e61d7242f600530677b0466aac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/monolog/zipball/65026b610f8c19e61d7242f600530677b0466aac",
- "reference": "65026b610f8c19e61d7242f600530677b0466aac",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0",
- "psr/log": "~1.0"
- },
- "require-dev": {
- "aws/aws-sdk-php": "~2.4, >2.4.8",
- "doctrine/couchdb": "~1.0@dev",
- "graylog2/gelf-php": "~1.0",
- "phpunit/phpunit": "~3.7.0",
- "raven/raven": "~0.5",
- "ruflin/elastica": "0.90.*"
- },
- "suggest": {
- "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB",
- "doctrine/couchdb": "Allow sending log messages to a CouchDB server",
- "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
- "ext-mongo": "Allow sending log messages to a MongoDB server",
- "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
- "raven/raven": "Allow sending log messages to a Sentry server",
- "rollbar/rollbar": "Allow sending log messages to Rollbar",
- "ruflin/elastica": "Allow sending log messages to an Elastic Search server"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Monolog\\": "src/Monolog"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be",
- "role": "Developer"
- }
- ],
- "description": "Sends your logs to files, sockets, inboxes, databases and various web services",
- "homepage": "http://github.com/Seldaek/monolog",
- "keywords": [
- "log",
- "logging",
- "psr-3"
- ],
- "time": "2014-04-24 13:29:03"
- },
- {
- "name": "mpdf/mpdf",
- "version": "v5.7.2",
- "source": {
- "type": "git",
- "url": "https://github.com/finwe/mpdf.git",
- "reference": "1627f9e7d2ef0f635a886f611079216ed2929717"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/finwe/mpdf/zipball/1627f9e7d2ef0f635a886f611079216ed2929717",
- "reference": "1627f9e7d2ef0f635a886f611079216ed2929717",
- "shasum": ""
- },
- "require": {
- "ext-mbstring": "*",
- "php": ">=4.3.10"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "mpdf.php",
- "classes"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-1.0+"
- ],
- "authors": [
- {
- "name": "Ian Back"
- }
- ],
- "description": "A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support",
- "homepage": "http://www.mpdf1.com/mpdf/index.php",
- "keywords": [
- "pdf",
- "php",
- "utf-8"
- ],
- "time": "2014-05-16 07:18:10"
- },
- {
- "name": "nikic/php-parser",
- "version": "v0.9.4",
- "source": {
- "type": "git",
- "url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "1e5e280ae88a27effa2ae4aa2bd088494ed8594f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1e5e280ae88a27effa2ae4aa2bd088494ed8594f",
- "reference": "1e5e280ae88a27effa2ae4aa2bd088494ed8594f",
- "shasum": ""
- },
- "require": {
- "php": ">=5.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "0.9-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "PHPParser": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Nikita Popov"
- }
- ],
- "description": "A PHP parser written in PHP",
- "keywords": [
- "parser",
- "php"
- ],
- "time": "2013-08-25 17:11:40"
- },
- {
- "name": "phenx/php-font-lib",
- "version": "0.2.2",
- "source": {
- "type": "git",
- "url": "https://github.com/PhenX/php-font-lib.git",
- "reference": "c30c7fc00a6b0d863e9bb4c5d5dd015298b2dc82"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/PhenX/php-font-lib/zipball/c30c7fc00a6b0d863e9bb4c5d5dd015298b2dc82",
- "reference": "c30c7fc00a6b0d863e9bb4c5d5dd015298b2dc82",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "classes/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "LGPL"
- ],
- "authors": [
- {
- "name": "Fabien Ménager",
- "email": "fabien.menager@gmail.com"
- }
- ],
- "description": "A library to read, parse, export and make subsets of different types of font files.",
- "homepage": "https://github.com/PhenX/php-font-lib",
- "time": "2014-02-01 15:22:28"
- },
- {
- "name": "phpcollection/phpcollection",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/schmittjoh/php-collection.git",
- "reference": "b8bf55a0a929ca43b01232b36719f176f86c7e83"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/schmittjoh/php-collection/zipball/b8bf55a0a929ca43b01232b36719f176f86c7e83",
- "reference": "b8bf55a0a929ca43b01232b36719f176f86c7e83",
- "shasum": ""
- },
- "require": {
- "phpoption/phpoption": "1.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "0.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "PhpCollection": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "Apache2"
- ],
- "authors": [
- {
- "name": "Johannes M. Schmitt",
- "email": "schmittjoh@gmail.com",
- "homepage": "http://jmsyst.com",
- "role": "Developer of wrapped JMSSerializerBundle"
- }
- ],
- "description": "General-Purpose Collection Library for PHP",
- "keywords": [
- "collection",
- "list",
- "map",
- "sequence",
- "set"
- ],
- "time": "2014-03-11 13:46:42"
- },
- {
- "name": "phpdocumentor/fileset",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/Fileset.git",
- "reference": "bfa78d8fa9763dfce6d0e5d3730c1d8ab25d34b0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/Fileset/zipball/bfa78d8fa9763dfce6d0e5d3730c1d8ab25d34b0",
- "reference": "bfa78d8fa9763dfce6d0e5d3730c1d8ab25d34b0",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "symfony/finder": "~2.1"
- },
- "require-dev": {
- "phpunit/phpunit": "~3.7"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/",
- "tests/unit/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Fileset component for collecting a set of files given directories and file paths",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "files",
- "fileset",
- "phpdoc"
- ],
- "time": "2013-08-06 21:07:42"
- },
- {
- "name": "phpdocumentor/graphviz",
- "version": "1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/GraphViz.git",
- "reference": "13595130b9bc185109f40f1b70f0b231f490f5fc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/GraphViz/zipball/13595130b9bc185109f40f1b70f0b231f490f5fc",
- "reference": "13595130b9bc185109f40f1b70f0b231f490f5fc",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~3.7"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/",
- "tests/unit"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "mike.vanriel@naenius.com"
- }
- ],
- "time": "2014-02-26 17:45:01"
- },
- {
- "name": "phpdocumentor/phpdocumentor",
- "version": "v2.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/phpDocumentor2.git",
- "reference": "bf9fa40f6d00412410025b2e16eb16c315eb0216"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/phpDocumentor2/zipball/bf9fa40f6d00412410025b2e16eb16c315eb0216",
- "reference": "bf9fa40f6d00412410025b2e16eb16c315eb0216",
- "shasum": ""
- },
- "require": {
- "cilex/cilex": "~1.0",
- "dompdf/dompdf": "~0.6",
- "erusev/parsedown": "~0.7",
- "jms/serializer": "~0.12",
- "knplabs/knp-menu": "~1.1",
- "monolog/monolog": "~1.6",
- "php": ">=5.3.3",
- "phpdocumentor/fileset": "~1.0",
- "phpdocumentor/graphviz": "~1.0",
- "phpdocumentor/reflection": "~1.0",
- "phpdocumentor/reflection-docblock": "~2.0",
- "phpdocumentor/template-abstract": "~1.2",
- "phpdocumentor/template-checkstyle": "~1.2",
- "phpdocumentor/template-clean": "~1.0",
- "phpdocumentor/template-new-black": "~1.3",
- "phpdocumentor/template-old-ocean": "~1.3",
- "phpdocumentor/template-responsive": "~1.3",
- "phpdocumentor/template-responsive-twig": "~1.2",
- "phpdocumentor/template-xml": "~1.0",
- "phpdocumentor/template-zend": "~1.3",
- "symfony/config": "~2.3",
- "symfony/console": "~2.3",
- "symfony/event-dispatcher": "~2.1",
- "symfony/process": "~2.0",
- "symfony/stopwatch": "~2.3",
- "symfony/validator": "~2.2",
- "twig/twig": "~1.3",
- "zendframework/zend-cache": "2.1.*",
- "zendframework/zend-config": "2.1.*",
- "zendframework/zend-filter": "2.1.*",
- "zendframework/zend-i18n": "2.1.*",
- "zendframework/zend-serializer": "2.1.*",
- "zendframework/zend-servicemanager": "2.1.*",
- "zendframework/zend-stdlib": "2.1.*",
- "zetacomponents/document": ">=1.3.1"
- },
- "require-dev": {
- "behat/behat": "~2.4",
- "mikey179/vfsstream": "~1.2",
- "mockery/mockery": ">=0.8.0",
- "phpunit/phpunit": "~3.7",
- "squizlabs/php_codesniffer": "~1.4",
- "symfony/expression-language": "~2.4"
- },
- "suggest": {
- "ext-twig": "Enabling the twig extension improves the generation of twig based templates.",
- "ext-xslcache": "Enabling the XSLCache extension improves the generation of xml based templates."
- },
- "bin": [
- "bin/phpdoc.php",
- "bin/phpdoc"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-develop": "2.5-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/",
- "tests/unit/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Documentation Generator for PHP",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "api",
- "application",
- "dga",
- "documentation",
- "phpdoc"
- ],
- "time": "2014-05-17 12:25:35"
- },
- {
- "name": "phpdocumentor/reflection",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/Reflection.git",
- "reference": "df82db631acd60739c8796b3c6d5e4da970808f3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/Reflection/zipball/df82db631acd60739c8796b3c6d5e4da970808f3",
- "reference": "df82db631acd60739c8796b3c6d5e4da970808f3",
- "shasum": ""
- },
- "require": {
- "nikic/php-parser": "0.9.4",
- "php": ">=5.3.3",
- "phpdocumentor/reflection-docblock": "2.*",
- "psr/log": "~1.0"
- },
- "require-dev": {
- "behat/behat": "~2.4",
- "mockery/mockery": ">=0.7.0",
- "phpunit/phpunit": "~3.7"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/",
- "tests/unit/",
- "tests/mocks/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Reflection library to do Static Analysis for PHP Projects",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2014-03-28 11:20:22"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "2.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "0bca477a34baea39add016af90046f002a175619"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/0bca477a34baea39add016af90046f002a175619",
- "reference": "0bca477a34baea39add016af90046f002a175619",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "3.7.*@stable"
- },
- "suggest": {
- "dflydev/markdown": "1.0.*",
- "erusev/parsedown": "~0.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "mike.vanriel@naenius.com"
- }
- ],
- "time": "2014-03-28 09:21:30"
- },
- {
- "name": "phpdocumentor/template-abstract",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/template.abstract.git",
- "reference": "43fa2db351d7a150803397721e778f9dd8a20b47"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/template.abstract/zipball/43fa2db351d7a150803397721e778f9dd8a20b47",
- "reference": "43fa2db351d7a150803397721e778f9dd8a20b47",
- "shasum": ""
- },
- "require": {
- "ext-xsl": "*",
- "phpdocumentor/unified-asset-installer": "~1.1"
- },
- "type": "phpdocumentor-template",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Simple bright template for phpDocumentor",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "documentation",
- "phpdoc",
- "template"
- ],
- "time": "2013-08-02 06:11:13"
- },
- {
- "name": "phpdocumentor/template-checkstyle",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/template.checkstyle.git",
- "reference": "22a45684e737c8c3ec3f1a12edb7743b7a82ac8b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/template.checkstyle/zipball/22a45684e737c8c3ec3f1a12edb7743b7a82ac8b",
- "reference": "22a45684e737c8c3ec3f1a12edb7743b7a82ac8b",
- "shasum": ""
- },
- "require": {
- "ext-xsl": "*",
- "phpdocumentor/unified-asset-installer": "~1.1"
- },
- "type": "phpdocumentor-template",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Checkstyle XML output template for phpDocumentor2",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "documentation",
- "phpdoc",
- "template"
- ],
- "time": "2013-08-01 19:43:19"
- },
- {
- "name": "phpdocumentor/template-clean",
- "version": "1.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/template.clean.git",
- "reference": "78f2048c5ecd62f0b79dbac093687d78a66d1806"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/template.clean/zipball/78f2048c5ecd62f0b79dbac093687d78a66d1806",
- "reference": "78f2048c5ecd62f0b79dbac093687d78a66d1806",
- "shasum": ""
- },
- "require": {
- "phpdocumentor/unified-asset-installer": "~1.1"
- },
- "type": "phpdocumentor-template",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "A clean, responsive modern template for phpDocumentor for Twig aimed at usability",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "documentation",
- "phpdoc",
- "responsive",
- "template"
- ],
- "time": "2014-03-29 08:22:15"
- },
- {
- "name": "phpdocumentor/template-new-black",
- "version": "1.3.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/template.new_black.git",
- "reference": "be38beba2b2674be292f32f88efe8a60c658a139"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/template.new_black/zipball/be38beba2b2674be292f32f88efe8a60c658a139",
- "reference": "be38beba2b2674be292f32f88efe8a60c658a139",
- "shasum": ""
- },
- "require": {
- "ext-xsl": "*",
- "phpdocumentor/template-abstract": "1.*",
- "phpdocumentor/unified-asset-installer": "~1.1"
- },
- "type": "phpdocumentor-template",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Web 2.0 template with dark sidebar for phpDocumentor",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "documentation",
- "phpdoc",
- "template"
- ],
- "time": "2013-08-02 06:16:30"
- },
- {
- "name": "phpdocumentor/template-old-ocean",
- "version": "1.3.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/template.old_ocean.git",
- "reference": "3a0e2bcced4045a694d53b4607aad04e99d78489"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/template.old_ocean/zipball/3a0e2bcced4045a694d53b4607aad04e99d78489",
- "reference": "3a0e2bcced4045a694d53b4607aad04e99d78489",
- "shasum": ""
- },
- "require": {
- "ext-xsl": "*",
- "phpdocumentor/unified-asset-installer": "~1.1"
- },
- "type": "phpdocumentor-template",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Blue template with high contrast for the foreground",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "documentation",
- "phpdoc",
- "template"
- ],
- "time": "2013-08-02 06:21:07"
- },
- {
- "name": "phpdocumentor/template-responsive",
- "version": "1.3.3",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/template.responsive.git",
- "reference": "26f895a2ed3148e1686ae4d802f65a3ef04c04e1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/template.responsive/zipball/26f895a2ed3148e1686ae4d802f65a3ef04c04e1",
- "reference": "26f895a2ed3148e1686ae4d802f65a3ef04c04e1",
- "shasum": ""
- },
- "require": {
- "ext-xsl": "*",
- "phpdocumentor/unified-asset-installer": "~1.1"
- },
- "type": "phpdocumentor-template",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Responsive modern template for phpDocumentor",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "documentation",
- "phpdoc",
- "template"
- ],
- "time": "2014-03-29 08:55:54"
- },
- {
- "name": "phpdocumentor/template-responsive-twig",
- "version": "1.2.3",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/template.responsive-twig.git",
- "reference": "cd6d82be6a4626d865fd01d40aad170cea08db0a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/template.responsive-twig/zipball/cd6d82be6a4626d865fd01d40aad170cea08db0a",
- "reference": "cd6d82be6a4626d865fd01d40aad170cea08db0a",
- "shasum": ""
- },
- "require": {
- "phpdocumentor/unified-asset-installer": "~1.1"
- },
- "type": "phpdocumentor-template",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Responsive modern template for phpDocumentor for Twig",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "documentation",
- "phpdoc",
- "template"
- ],
- "time": "2014-03-30 21:02:00"
- },
- {
- "name": "phpdocumentor/template-xml",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/mvriel/template.xml.git",
- "reference": "a372713be8ee99b16497e2580592e474ff51190c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/mvriel/template.xml/zipball/a372713be8ee99b16497e2580592e474ff51190c",
- "reference": "a372713be8ee99b16497e2580592e474ff51190c",
- "shasum": ""
- },
- "require": {
- "phpdocumentor/unified-asset-installer": "~1.1"
- },
- "type": "phpdocumentor-template",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Generates an XML representation of the project's structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "documentation",
- "phpdoc",
- "template"
- ],
- "time": "2013-08-01 20:23:32"
- },
- {
- "name": "phpdocumentor/template-zend",
- "version": "1.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/template.zend.git",
- "reference": "75913288bfd73d3bf4c1b1179c3963f3431e7a9d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/template.zend/zipball/75913288bfd73d3bf4c1b1179c3963f3431e7a9d",
- "reference": "75913288bfd73d3bf4c1b1179c3963f3431e7a9d",
- "shasum": ""
- },
- "require": {
- "ext-xsl": "*",
- "phpdocumentor/template-abstract": "1.*",
- "phpdocumentor/unified-asset-installer": "~1.1"
- },
- "type": "phpdocumentor-template",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Official Zend Framework Template for phpDocumentor2",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "ZendFramework",
- "documentation",
- "phpdoc",
- "template",
- "zend",
- "zf"
- ],
- "time": "2013-12-05 08:51:57"
- },
- {
- "name": "phpdocumentor/unified-asset-installer",
- "version": "1.1.2",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/UnifiedAssetInstaller.git",
- "reference": "241fb036268cd9da7d76da3db66e3eda66259c52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/UnifiedAssetInstaller/zipball/241fb036268cd9da7d76da3db66e3eda66259c52",
- "reference": "241fb036268cd9da7d76da3db66e3eda66259c52",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "1.0.0"
- },
- "require-dev": {
- "composer/composer": "~1.0@dev",
- "phpunit/phpunit": "~3.7"
- },
- "type": "composer-installer",
- "extra": {
- "class": "\\phpDocumentor\\Composer\\UnifiedAssetInstaller"
- },
- "autoload": {
- "psr-0": {
- "phpDocumentor\\Composer": [
- "src/",
- "test/unit/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Asset installer for phpDocumentor",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "assets",
- "installer",
- "plugins",
- "templates"
- ],
- "time": "2013-09-09 06:13:02"
- },
- {
- "name": "phpoption/phpoption",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/schmittjoh/php-option.git",
- "reference": "5d099bcf0393908bf4ad69cc47dafb785d51f7f5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/5d099bcf0393908bf4ad69cc47dafb785d51f7f5",
- "reference": "5d099bcf0393908bf4ad69cc47dafb785d51f7f5",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "PhpOption\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "Apache2"
- ],
- "authors": [
- {
- "name": "Johannes M. Schmitt",
- "email": "schmittjoh@gmail.com",
- "homepage": "http://jmsyst.com",
- "role": "Developer of wrapped JMSSerializerBundle"
- }
- ],
- "description": "Option Type for PHP",
- "keywords": [
- "language",
- "option",
- "php",
- "type"
- ],
- "time": "2014-01-09 22:37:17"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "1.2.17",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "6ef2bf3a1c47eca07ea95f0d8a902a6340390b34"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6ef2bf3a1c47eca07ea95f0d8a902a6340390b34",
- "reference": "6ef2bf3a1c47eca07ea95f0d8a902a6340390b34",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": ">=1.3.0@stable",
- "phpunit/php-text-template": ">=1.2.0@stable",
- "phpunit/php-token-stream": ">=1.1.3@stable"
- },
- "require-dev": {
- "phpunit/phpunit": "3.7.*@dev"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.0.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "PHP/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2014-03-28 10:53:45"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.3.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/acd690379117b042d1c8af1fafd61bde001bf6bb",
- "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "File/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2013-10-10 15:34:57"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/206dfefc0ffe9cebf65c413e3d0e809c82fbf00a",
- "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "Text/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2014-01-30 17:20:04"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "19689d4354b295ee3d8c54b4f42c3efb69cbc17c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/19689d4354b295ee3d8c54b4f42c3efb69cbc17c",
- "reference": "19689d4354b295ee3d8c54b4f42c3efb69cbc17c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "PHP/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2013-08-02 07:42:54"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.2.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "ad4e1e23ae01b483c16f600ff1bebec184588e32"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/ad4e1e23ae01b483c16f600ff1bebec184588e32",
- "reference": "ad4e1e23ae01b483c16f600ff1bebec184588e32",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2-dev"
- }
- },
- "autoload": {
- "classmap": [
- "PHP/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2014-03-03 05:10:30"
- },
- {
- "name": "phpunit/phpunit",
- "version": "3.7.37",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "ae6cefd7cc84586a5ef27e04bae11ee940ec63dc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ae6cefd7cc84586a5ef27e04bae11ee940ec63dc",
- "reference": "ae6cefd7cc84586a5ef27e04bae11ee940ec63dc",
- "shasum": ""
- },
- "require": {
- "ext-ctype": "*",
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*",
- "php": ">=5.3.3",
- "phpunit/php-code-coverage": "~1.2",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-text-template": "~1.1",
- "phpunit/php-timer": "~1.0",
- "phpunit/phpunit-mock-objects": "~1.2",
- "symfony/yaml": "~2.0"
- },
- "require-dev": {
- "pear-pear.php.net/pear": "1.9.4"
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "composer/bin/phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.7.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "PHPUnit/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- "",
- "../../symfony/yaml/"
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "http://www.phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2014-04-30 12:24:19"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "1.2.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "5794e3c5c5ba0fb037b11d8151add2a07fa82875"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/5794e3c5c5ba0fb037b11d8151add2a07fa82875",
- "reference": "5794e3c5c5ba0fb037b11d8151add2a07fa82875",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-text-template": ">=1.1.1@stable"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "PHPUnit/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2013-01-13 10:24:48"
- },
- {
- "name": "pimple/pimple",
- "version": "v1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/fabpot/Pimple.git",
- "reference": "2019c145fe393923f3441b23f29bbdfaa5c58c4d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/fabpot/Pimple/zipball/2019c145fe393923f3441b23f29bbdfaa5c58c4d",
- "reference": "2019c145fe393923f3441b23f29bbdfaa5c58c4d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Pimple": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- }
- ],
- "description": "Pimple is a simple Dependency Injection Container for PHP 5.3",
- "homepage": "http://pimple.sensiolabs.org",
- "keywords": [
- "container",
- "dependency injection"
- ],
- "time": "2013-11-22 08:30:29"
- },
- {
- "name": "psr/log",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b",
- "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Psr\\Log\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2012-12-21 11:40:51"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "1.5.3",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "396178ada8499ec492363587f037125bf7b07fcc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/396178ada8499ec492363587f037125bf7b07fcc",
- "reference": "396178ada8499ec492363587f037125bf7b07fcc",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.1.2"
- },
- "suggest": {
- "phpunit/php-timer": "dev-master"
- },
- "bin": [
- "scripts/phpcs"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-phpcs-fixer": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/CommentParser/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2014-05-01 03:07:07"
- },
- {
- "name": "symfony/config",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/Config",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Config.git",
- "reference": "2effc67af6f21a0d267210b72d0b0b691d113528"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/Config/zipball/2effc67af6f21a0d267210b72d0b0b691d113528",
- "reference": "2effc67af6f21a0d267210b72d0b0b691d113528",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "symfony/filesystem": "~2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Config\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "http://symfony.com",
- "time": "2014-04-22 08:11:06"
- },
- {
- "name": "symfony/console",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/Console",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Console.git",
- "reference": "2e452005b1e1d003d23702d227e23614679eb5ca"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/Console/zipball/2e452005b1e1d003d23702d227e23614679eb5ca",
- "reference": "2e452005b1e1d003d23702d227e23614679eb5ca",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "symfony/event-dispatcher": "~2.1"
- },
- "suggest": {
- "symfony/event-dispatcher": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Console\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "http://symfony.com",
- "time": "2014-04-27 13:34:57"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/EventDispatcher",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/EventDispatcher.git",
- "reference": "e539602e5455aa086c0e81e604745af7789e4d8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/EventDispatcher/zipball/e539602e5455aa086c0e81e604745af7789e4d8a",
- "reference": "e539602e5455aa086c0e81e604745af7789e4d8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "symfony/dependency-injection": "~2.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\EventDispatcher\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "http://symfony.com",
- "time": "2014-04-16 10:34:31"
- },
- {
- "name": "symfony/filesystem",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/Filesystem",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Filesystem.git",
- "reference": "a3af8294bcce4a7c1b2892363b0c9d8109affad4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/Filesystem/zipball/a3af8294bcce4a7c1b2892363b0c9d8109affad4",
- "reference": "a3af8294bcce4a7c1b2892363b0c9d8109affad4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Filesystem\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "http://symfony.com",
- "time": "2014-04-16 10:34:31"
- },
- {
- "name": "symfony/finder",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/Finder",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Finder.git",
- "reference": "25e1e7d5e7376f8a92ae3b1d714d956edf33a730"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/Finder/zipball/25e1e7d5e7376f8a92ae3b1d714d956edf33a730",
- "reference": "25e1e7d5e7376f8a92ae3b1d714d956edf33a730",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Finder\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "http://symfony.com",
- "time": "2014-04-27 13:34:57"
- },
- {
- "name": "symfony/process",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/Process",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Process.git",
- "reference": "8721f1476d5d38a43c7d6ccb6435b351cf8f3bb7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/Process/zipball/8721f1476d5d38a43c7d6ccb6435b351cf8f3bb7",
- "reference": "8721f1476d5d38a43c7d6ccb6435b351cf8f3bb7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Process\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Process Component",
- "homepage": "http://symfony.com",
- "time": "2014-04-27 13:34:57"
- },
- {
- "name": "symfony/property-access",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/PropertyAccess",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/PropertyAccess.git",
- "reference": "0456222bc00c40c1365065b603f7c397fb9a7134"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/PropertyAccess/zipball/0456222bc00c40c1365065b603f7c397fb9a7134",
- "reference": "0456222bc00c40c1365065b603f7c397fb9a7134",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\PropertyAccess\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony PropertyAccess Component",
- "homepage": "http://symfony.com",
- "keywords": [
- "access",
- "array",
- "extraction",
- "index",
- "injection",
- "object",
- "property",
- "property path",
- "reflection"
- ],
- "time": "2014-04-18 20:37:09"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/Stopwatch",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Stopwatch.git",
- "reference": "343bcc0360f2c22f371884b8f6a9fee8d1aa431a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/Stopwatch/zipball/343bcc0360f2c22f371884b8f6a9fee8d1aa431a",
- "reference": "343bcc0360f2c22f371884b8f6a9fee8d1aa431a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Stopwatch\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "http://symfony.com",
- "time": "2014-04-18 20:37:09"
- },
- {
- "name": "symfony/translation",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/Translation",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Translation.git",
- "reference": "d2c73ffa4a5ba1fa0c5d93f43b68331dffe898c5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/Translation/zipball/d2c73ffa4a5ba1fa0c5d93f43b68331dffe898c5",
- "reference": "d2c73ffa4a5ba1fa0c5d93f43b68331dffe898c5",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "symfony/config": "~2.0",
- "symfony/yaml": "~2.2"
- },
- "suggest": {
- "symfony/config": "",
- "symfony/yaml": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Translation\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Translation Component",
- "homepage": "http://symfony.com",
- "time": "2014-04-18 21:02:05"
- },
- {
- "name": "symfony/validator",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/Validator",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Validator.git",
- "reference": "5bbcdcc520bc7fb3826abb44020880f14c9c03a7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/Validator/zipball/5bbcdcc520bc7fb3826abb44020880f14c9c03a7",
- "reference": "5bbcdcc520bc7fb3826abb44020880f14c9c03a7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "symfony/property-access": "~2.2",
- "symfony/translation": "~2.0"
- },
- "require-dev": {
- "doctrine/annotations": "~1.0",
- "doctrine/cache": "~1.0",
- "symfony/config": "~2.2",
- "symfony/http-foundation": "~2.1",
- "symfony/intl": "~2.3",
- "symfony/yaml": "~2.0"
- },
- "suggest": {
- "doctrine/annotations": "For using the annotation mapping. You will also need doctrine/cache.",
- "doctrine/cache": "For using the default cached annotation reader",
- "symfony/config": "",
- "symfony/http-foundation": "",
- "symfony/intl": "",
- "symfony/yaml": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Validator\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Validator Component",
- "homepage": "http://symfony.com",
- "time": "2014-04-27 13:34:57"
- },
- {
- "name": "symfony/yaml",
- "version": "v2.4.4",
- "target-dir": "Symfony/Component/Yaml",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Yaml.git",
- "reference": "65539ecde838f9c0d18b006b2101e3deb4b5c9ff"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/Yaml/zipball/65539ecde838f9c0d18b006b2101e3deb4b5c9ff",
- "reference": "65539ecde838f9c0d18b006b2101e3deb4b5c9ff",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Yaml\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "http://symfony.com",
- "time": "2014-04-18 20:37:09"
- },
- {
- "name": "tecnick.com/tcpdf",
- "version": "6.0.078",
- "source": {
- "type": "git",
- "url": "git://git.code.sf.net/p/tcpdf/code",
- "reference": "e1cbda79b99f3cdc8fdf26b39eb4870d2cd9fbac"
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "fonts",
- "config",
- "include",
- "tcpdf.php",
- "tcpdf_parser.php",
- "tcpdf_import.php",
- "tcpdf_barcodes_1d.php",
- "tcpdf_barcodes_2d.php",
- "include/tcpdf_colors.php",
- "include/tcpdf_filters.php",
- "include/tcpdf_font_data.php",
- "include/tcpdf_fonts.php",
- "include/tcpdf_images.php",
- "include/tcpdf_static.php",
- "include/barcodes/datamatrix.php",
- "include/barcodes/pdf417.php",
- "include/barcodes/qrcode.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "LGPLv3"
- ],
- "authors": [
- {
- "name": "Nicola Asuni",
- "email": "info@tecnick.com",
- "homepage": "http://nicolaasuni.tecnick.com"
- }
- ],
- "description": "TCPDF is a PHP class for generating PDF documents.",
- "homepage": "http://www.tcpdf.org/",
- "keywords": [
- "PDFD32000-2008",
- "TCPDF",
- "barcodes",
- "datamatrix",
- "pdf",
- "pdf417",
- "qrcode"
- ],
- "time": "2014-05-12 19:50:13"
- },
- {
- "name": "twig/twig",
- "version": "v1.15.1",
- "source": {
- "type": "git",
- "url": "https://github.com/fabpot/Twig.git",
- "reference": "1fb5784662f438d7d96a541e305e28b812e2eeed"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/fabpot/Twig/zipball/1fb5784662f438d7d96a541e305e28b812e2eeed",
- "reference": "1fb5784662f438d7d96a541e305e28b812e2eeed",
- "shasum": ""
- },
- "require": {
- "php": ">=5.2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.15-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Twig_": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Armin Ronacher2",
- "email": "armin.ronacher@active-4.com",
- "role": "Project Founder"
- },
- {
- "name": "Twig Team",
- "homepage": "https://github.com/fabpot/Twig/graphs/contributors",
- "role": "Contributors"
- }
- ],
- "description": "Twig, the flexible, fast, and secure template language for PHP",
- "homepage": "http://twig.sensiolabs.org",
- "keywords": [
- "templating"
- ],
- "time": "2014-02-13 10:19:29"
- },
- {
- "name": "zendframework/zend-cache",
- "version": "2.1.6",
- "target-dir": "Zend/Cache",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/Component_ZendCache.git",
- "reference": "560355160f06cdc3ef549a7eef843af3bead7e39"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/Component_ZendCache/zipball/560355160f06cdc3ef549a7eef843af3bead7e39",
- "reference": "560355160f06cdc3ef549a7eef843af3bead7e39",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "zendframework/zend-eventmanager": "self.version",
- "zendframework/zend-servicemanager": "self.version",
- "zendframework/zend-stdlib": "self.version"
- },
- "require-dev": {
- "zendframework/zend-serializer": "self.version"
- },
- "suggest": {
- "ext-apc": "APC >= 3.1.6 to use the APC storage adapter",
- "ext-dba": "DBA, to use the DBA storage adapter",
- "ext-memcached": "Memcached >= 1.0.0 to use the Memcached storage adapter",
- "ext-wincache": "WinCache, to use the WinCache storage adapter",
- "zendframework/zend-serializer": "Zend\\Serializer component",
- "zendframework/zend-session": "Zend\\Session component"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2-dev",
- "dev-develop": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Zend\\Cache\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "provides a generic way to cache any data",
- "keywords": [
- "cache",
- "zf2"
- ],
- "time": "2014-03-03 23:00:17"
- },
- {
- "name": "zendframework/zend-config",
- "version": "2.1.6",
- "target-dir": "Zend/Config",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/Component_ZendConfig.git",
- "reference": "a31c3980cf7ec88418a931e9cf4ba21079f47a08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/Component_ZendConfig/zipball/a31c3980cf7ec88418a931e9cf4ba21079f47a08",
- "reference": "a31c3980cf7ec88418a931e9cf4ba21079f47a08",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "zendframework/zend-stdlib": "self.version"
- },
- "suggest": {
- "zendframework/zend-json": "Zend\\Json to use the Json reader or writer classes",
- "zendframework/zend-servicemanager": "Zend\\ServiceManager for use with the Config Factory to retrieve reader and writer instances"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2-dev",
- "dev-develop": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Zend\\Config\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "provides a nested object property based user interface for accessing this configuration data within application code",
- "keywords": [
- "config",
- "zf2"
- ],
- "time": "2014-01-02 18:00:10"
- },
- {
- "name": "zendframework/zend-eventmanager",
- "version": "2.1.6",
- "target-dir": "Zend/EventManager",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/Component_ZendEventManager.git",
- "reference": "89368704bb37303fba64c3ddd6bce0506aa7187c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/Component_ZendEventManager/zipball/89368704bb37303fba64c3ddd6bce0506aa7187c",
- "reference": "89368704bb37303fba64c3ddd6bce0506aa7187c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "zendframework/zend-stdlib": "self.version"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2-dev",
- "dev-develop": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Zend\\EventManager\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "keywords": [
- "eventmanager",
- "zf2"
- ],
- "time": "2014-01-04 13:00:14"
- },
- {
- "name": "zendframework/zend-filter",
- "version": "2.1.6",
- "target-dir": "Zend/Filter",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/Component_ZendFilter.git",
- "reference": "8ceece474b29d079e86976dbd3efffe6064b3d72"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/Component_ZendFilter/zipball/8ceece474b29d079e86976dbd3efffe6064b3d72",
- "reference": "8ceece474b29d079e86976dbd3efffe6064b3d72",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "zendframework/zend-stdlib": "self.version"
- },
- "require-dev": {
- "zendframework/zend-crypt": "self.version"
- },
- "suggest": {
- "zendframework/zend-crypt": "Zend\\Crypt component",
- "zendframework/zend-i18n": "Zend\\I18n component",
- "zendframework/zend-uri": "Zend\\Uri component for UriNormalize filter",
- "zendframework/zend-validator": "Zend\\Validator component"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2-dev",
- "dev-develop": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Zend\\Filter\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "provides a set of commonly needed data filters",
- "keywords": [
- "filter",
- "zf2"
- ],
- "time": "2014-03-03 21:00:06"
- },
- {
- "name": "zendframework/zend-i18n",
- "version": "2.1.6",
- "target-dir": "Zend/I18n",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/Component_ZendI18n.git",
- "reference": "10f56e0869761d62699782e4dd04eb77262cc353"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/Component_ZendI18n/zipball/10f56e0869761d62699782e4dd04eb77262cc353",
- "reference": "10f56e0869761d62699782e4dd04eb77262cc353",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "zendframework/zend-stdlib": "self.version"
- },
- "suggest": {
- "ext-intl": "Required for most features of Zend\\I18n; included in default builds of PHP",
- "zendframework/zend-eventmanager": "You should install this package to use the events in the translator",
- "zendframework/zend-filter": "You should install this package to use the provided filters",
- "zendframework/zend-resources": "Translation resources",
- "zendframework/zend-validator": "You should install this package to use the provided validators",
- "zendframework/zend-view": "You should install this package to use the provided view helpers"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2-dev",
- "dev-develop": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Zend\\I18n\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "keywords": [
- "i18n",
- "zf2"
- ],
- "time": "2014-01-04 13:00:19"
- },
- {
- "name": "zendframework/zend-json",
- "version": "2.1.6",
- "target-dir": "Zend/Json",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/Component_ZendJson.git",
- "reference": "dd8a8239a7c08c7449a6ea219da3e2369bd90d92"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/Component_ZendJson/zipball/dd8a8239a7c08c7449a6ea219da3e2369bd90d92",
- "reference": "dd8a8239a7c08c7449a6ea219da3e2369bd90d92",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "zendframework/zend-stdlib": "self.version"
- },
- "suggest": {
- "zendframework/zend-server": "Zend\\Server component"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2-dev",
- "dev-develop": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Zend\\Json\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "provides convenience methods for serializing native PHP to JSON and decoding JSON to native PHP",
- "keywords": [
- "json",
- "zf2"
- ],
- "time": "2014-03-06 18:00:05"
- },
- {
- "name": "zendframework/zend-math",
- "version": "2.1.6",
- "target-dir": "Zend/Math",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/Component_ZendMath.git",
- "reference": "b982ee2edafd4075b22372596ab2e2fdd0f6424e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/Component_ZendMath/zipball/b982ee2edafd4075b22372596ab2e2fdd0f6424e",
- "reference": "b982ee2edafd4075b22372596ab2e2fdd0f6424e",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-bcmath": "If using the bcmath functionality",
- "ext-gmp": "If using the gmp functionality",
- "ircmaxell/random-lib": "Fallback random byte generator for Zend\\Math\\Rand if OpenSSL/Mcrypt extensions are unavailable",
- "zendframework/zend-servicemanager": ">= current version, if using the BigInteger::factory functionality"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2-dev",
- "dev-develop": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Zend\\Math\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "keywords": [
- "math",
- "zf2"
- ],
- "time": "2014-03-05 18:00:06"
- },
- {
- "name": "zendframework/zend-serializer",
- "version": "2.1.6",
- "target-dir": "Zend/Serializer",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/Component_ZendSerializer.git",
- "reference": "d76b931d3ffa842a496c9fa319bbe285b5ddfade"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/Component_ZendSerializer/zipball/d76b931d3ffa842a496c9fa319bbe285b5ddfade",
- "reference": "d76b931d3ffa842a496c9fa319bbe285b5ddfade",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "zendframework/zend-json": "self.version",
- "zendframework/zend-math": "self.version",
- "zendframework/zend-stdlib": "self.version"
- },
- "suggest": {
- "zendframework/zend-servicemanager": "To support plugin manager support"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2-dev",
- "dev-develop": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Zend\\Serializer\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "provides an adapter based interface to simply generate storable representation of PHP types by different facilities, and recover",
- "keywords": [
- "serializer",
- "zf2"
- ],
- "time": "2014-01-02 18:00:26"
- },
- {
- "name": "zendframework/zend-servicemanager",
- "version": "2.1.6",
- "target-dir": "Zend/ServiceManager",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/Component_ZendServiceManager.git",
- "reference": "de182a20dfdcf978c49570514103c7477ef16e4f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/Component_ZendServiceManager/zipball/de182a20dfdcf978c49570514103c7477ef16e4f",
- "reference": "de182a20dfdcf978c49570514103c7477ef16e4f",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "zendframework/zend-di": "Zend\\Di component"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2-dev",
- "dev-develop": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Zend\\ServiceManager\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "keywords": [
- "servicemanager",
- "zf2"
- ],
- "time": "2014-03-03 21:00:04"
- },
- {
- "name": "zendframework/zend-stdlib",
- "version": "2.1.6",
- "target-dir": "Zend/Stdlib",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/Component_ZendStdlib.git",
- "reference": "e646729f2274f4552b6a92e38d8e458efe08ebc5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/Component_ZendStdlib/zipball/e646729f2274f4552b6a92e38d8e458efe08ebc5",
- "reference": "e646729f2274f4552b6a92e38d8e458efe08ebc5",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "zendframework/zend-eventmanager": "To support aggregate hydrator usage",
- "zendframework/zend-servicemanager": "To support hydrator plugin manager usage"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2-dev",
- "dev-develop": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Zend\\Stdlib\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "keywords": [
- "stdlib",
- "zf2"
- ],
- "time": "2014-01-04 13:00:28"
- },
- {
- "name": "zetacomponents/base",
- "version": "1.8",
- "source": {
- "type": "git",
- "url": "https://github.com/zetacomponents/Base.git",
- "reference": "52ca69c1de55f3fa4f595779e5bc831da7ee176c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zetacomponents/Base/zipball/52ca69c1de55f3fa4f595779e5bc831da7ee176c",
- "reference": "52ca69c1de55f3fa4f595779e5bc831da7ee176c",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "apache2"
- ],
- "authors": [
- {
- "name": "Sergey Alexeev"
- },
- {
- "name": "Sebastian Bergmann"
- },
- {
- "name": "Jan Borsodi"
- },
- {
- "name": "Raymond Bosman"
- },
- {
- "name": "Frederik Holljen"
- },
- {
- "name": "Kore Nordmann"
- },
- {
- "name": "Derick Rethans"
- },
- {
- "name": "Vadym Savchuk"
- },
- {
- "name": "Tobias Schlitt"
- },
- {
- "name": "Alexandru Stanoi"
- }
- ],
- "description": "The Base package provides the basic infrastructure that all packages rely on. Therefore every component relies on this package.",
- "homepage": "https://github.com/zetacomponents",
- "time": "2009-12-21 12:14:16"
- },
- {
- "name": "zetacomponents/document",
- "version": "1.3.1",
- "source": {
- "type": "git",
- "url": "https://github.com/zetacomponents/Document.git",
- "reference": "688abfde573cf3fe0730f82538fbd7aa9fc95bc8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zetacomponents/Document/zipball/688abfde573cf3fe0730f82538fbd7aa9fc95bc8",
- "reference": "688abfde573cf3fe0730f82538fbd7aa9fc95bc8",
- "shasum": ""
- },
- "require": {
- "zetacomponents/base": "*"
- },
- "require-dev": {
- "zetacomponents/unit-test": "dev-master"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "Apache-2.0"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann"
- },
- {
- "name": "Kore Nordmann"
- },
- {
- "name": "Derick Rethans"
- },
- {
- "name": "Tobias Schlitt"
- },
- {
- "name": "Alexandru Stanoi"
- }
- ],
- "description": "The Document components provides a general conversion framework for different semantic document markup languages like XHTML, Docbook, RST and similar.",
- "homepage": "https://github.com/zetacomponents",
- "time": "2013-12-19 11:40:00"
- }
- ],
- "aliases": [
-
- ],
- "minimum-stability": "stable",
- "stability-flags": [
-
- ],
- "platform": {
- "php": ">=5.3.3",
- "ext-xml": "*",
- "ext-zip": "*"
- },
- "platform-dev": [
-
- ]
-}
diff --git a/docs/Makefile b/docs/Makefile
deleted file mode 100644
index 5631b06028..0000000000
--- a/docs/Makefile
+++ /dev/null
@@ -1,153 +0,0 @@
-# Makefile for Sphinx documentation
-#
-
-# You can set these variables from the command line.
-SPHINXOPTS =
-SPHINXBUILD = sphinx-build
-PAPER =
-BUILDDIR = _build
-
-# Internal variables.
-PAPEROPT_a4 = -D latex_paper_size=a4
-PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
-# the i18n builder cannot share the environment and doctrees with the others
-I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
-
-.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
-
-help:
- @echo "Please use \`make ' where is one of"
- @echo " html to make standalone HTML files"
- @echo " dirhtml to make HTML files named index.html in directories"
- @echo " singlehtml to make a single large HTML file"
- @echo " pickle to make pickle files"
- @echo " json to make JSON files"
- @echo " htmlhelp to make HTML files and a HTML help project"
- @echo " qthelp to make HTML files and a qthelp project"
- @echo " devhelp to make HTML files and a Devhelp project"
- @echo " epub to make an epub"
- @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
- @echo " latexpdf to make LaTeX files and run them through pdflatex"
- @echo " text to make text files"
- @echo " man to make manual pages"
- @echo " texinfo to make Texinfo files"
- @echo " info to make Texinfo files and run them through makeinfo"
- @echo " gettext to make PO message catalogs"
- @echo " changes to make an overview of all changed/added/deprecated items"
- @echo " linkcheck to check all external links for integrity"
- @echo " doctest to run all doctests embedded in the documentation (if enabled)"
-
-clean:
- -rm -rf $(BUILDDIR)/*
-
-html:
- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
-
-dirhtml:
- $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
-
-singlehtml:
- $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
- @echo
- @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
-
-pickle:
- $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
- @echo
- @echo "Build finished; now you can process the pickle files."
-
-json:
- $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
- @echo
- @echo "Build finished; now you can process the JSON files."
-
-htmlhelp:
- $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
- @echo
- @echo "Build finished; now you can run HTML Help Workshop with the" \
- ".hhp project file in $(BUILDDIR)/htmlhelp."
-
-qthelp:
- $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
- @echo
- @echo "Build finished; now you can run "qcollectiongenerator" with the" \
- ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
- @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/PhpWord.qhcp"
- @echo "To view the help file:"
- @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/PhpWord.qhc"
-
-devhelp:
- $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
- @echo
- @echo "Build finished."
- @echo "To view the help file:"
- @echo "# mkdir -p $$HOME/.local/share/devhelp/PhpWord"
- @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/PhpWord"
- @echo "# devhelp"
-
-epub:
- $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
- @echo
- @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
-
-latex:
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
- @echo
- @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
- @echo "Run \`make' in that directory to run these through (pdf)latex" \
- "(use \`make latexpdf' here to do that automatically)."
-
-latexpdf:
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
- @echo "Running LaTeX files through pdflatex..."
- $(MAKE) -C $(BUILDDIR)/latex all-pdf
- @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
-
-text:
- $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
- @echo
- @echo "Build finished. The text files are in $(BUILDDIR)/text."
-
-man:
- $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
- @echo
- @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
-
-texinfo:
- $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
- @echo
- @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
- @echo "Run \`make' in that directory to run these through makeinfo" \
- "(use \`make info' here to do that automatically)."
-
-info:
- $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
- @echo "Running Texinfo files through makeinfo..."
- make -C $(BUILDDIR)/texinfo info
- @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
-
-gettext:
- $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
- @echo
- @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
-
-changes:
- $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
- @echo
- @echo "The overview file is in $(BUILDDIR)/changes."
-
-linkcheck:
- $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
- @echo
- @echo "Link check complete; look for any errors in the above output " \
- "or in $(BUILDDIR)/linkcheck/output.txt."
-
-doctest:
- $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
- @echo "Testing of doctests in the sources finished, look at the " \
- "results in $(BUILDDIR)/doctest/output.txt."
diff --git a/docs/changes/0.x/0.10.0.md b/docs/changes/0.x/0.10.0.md
new file mode 100644
index 0000000000..3c31d772c2
--- /dev/null
+++ b/docs/changes/0.x/0.10.0.md
@@ -0,0 +1,84 @@
+
+# 0.10.0 (4 May 2014)
+
+This release marked heavy refactorings on internal code structure with the creation of some abstract classes to reduce code duplication. `Element` subnamespace is introduced in this release to replace `Section`. Word2007 reader capability is greatly enhanced. Endnote is introduced. List numbering is now customizable. Basic HTML and PDF writing support is enabled. Basic ODText reader is introduced.
+
+### Features
+- Image: Get image dimensions without EXIF extension - @andrew-kzoo #184
+- Table: Add `tblGrid` element for Libre/Open Office table sizing - @gianis6 #183
+- Footnote: Ability to insert textbreak in footnote `$footnote->addTextBreak()` - @ivanlanin
+- Footnote: Ability to style footnote reference mark by using `FootnoteReference` style - @ivanlanin
+- Font: Add `bgColor` to font style to define background using HEX color - @jcarignan #168
+- Table: Add `exactHeight` to row style to define whether row height should be exact or atLeast - @jcarignan #168
+- Element: New `CheckBox` element for sections and table cells - @ozilion #156
+- Settings: Ability to use PCLZip as alternative to ZipArchive - @bskrtich @ivanlanin #106, #140, #185
+- Template: Ability to find & replace variables in headers & footers - @dgudgeon #190
+- Template: Ability to clone & delete block of text using `cloneBlock` and `deleteBlock` - @diego-vieira #191
+- TOC: Ability to have two or more TOC in one document and to set min and max depth for TOC - @Pyreweb #189
+- Table: Ability to add footnote in table cell - @ivanlanin #187
+- Footnote: Ability to add image in footnote - @ivanlanin #187
+- ListItem: Ability to add list item in header/footer - @ivanlanin #187
+- CheckBox: Ability to add checkbox in header/footer - @ivanlanin #187
+- Link: Ability to add link in header/footer - @ivanlanin #187
+- Object: Ability to add object in header, footer, textrun, and footnote - @ivanlanin #187
+- Media: Add `Media::resetElements()` to reset all media data - @juzi #19
+- General: Add `Style::resetStyles()` - @ivanlanin #187
+- DOCX Reader: Ability to read header, footer, footnotes, link, preservetext, textbreak, pagebreak, table, list, image, and title - @ivanlanin
+- Endnote: Ability to add endnotes - @ivanlanin
+- ListItem: Ability to create custom list and reset list number - @ivanlanin #10, #198
+- ODT Writer: Basic table writing support - @ivanlanin
+- Image: Keep image aspect ratio if only 1 dimension styled - @japonicus #194
+- HTML Writer: Basic HTML writer: text, textrun, link, title, textbreak, table, image (as Base64), footnote, endnote - @ivanlanin #203, #67, #147
+- PDF Writer: Basic PDF writer using DomPDF: All HTML element except image - @ivanlanin #68
+- DOCX Writer: Change `docProps/app.xml` `Application` to `PHPWord` - @ivanlanin
+- DOCX Writer: Create `word/settings.xml` and `word/webSettings.xml` dynamically - @ivanlanin
+- ODT Writer: Basic image writing - @ivanlanin
+- ODT Writer: Link writing - @ivanlanin
+- ODT Reader: Basic ODText Reader - @ivanlanin #71
+- Section: Ability to define gutter and line numbering - @ivanlanin
+- Font: Small caps, all caps, and double strikethrough - @ivanlanin #151
+- Settings: Ability to use measurement unit other than twips with `setMeasurementUnit` - @ivanlanin #199
+- Style: Remove `bgColor` from `Font`, `Table`, and `Cell` and put it into the new `Shading` style - @ivanlanin
+- Style: New `Indentation` and `Spacing` style - @ivanlanin
+- Paragraph: Ability to define first line and right indentation - @ivanlanin
+
+### Bugfixes
+- Footnote: Footnote content doesn't show footnote reference number - @ivanlanin #170
+- Documentation: Error in a function - @theBeerNut #195
+
+### Deprecated
+- `createTextRun` replaced by `addTextRun`
+- `createFootnote` replaced by `addFootnote`
+- `createHeader` replaced by `addHeader`
+- `createFooter` replaced by `addFooter`
+- `createSection` replaced by `addSection`
+- `Element\Footnote::getReferenceId` replaced by `Element\AbstractElement::getRelationId`
+- `Element\Footnote::setReferenceId` replaced by `Element\AbstractElement::setRelationId`
+- `Footnote::addFootnoteLinkElement` replaced by `Media::addElement`
+- `Footnote::getFootnoteLinkElements` replaced by `Media::getElements`
+- All current methods on `Media`
+- `Element\Link::getLinkSrc` replaced by `Element\Link::getTarget`
+- `Element\Link::getLinkName` replaced by `Element\Link::getText`
+- `Style\Cell::getDefaultBorderColor`
+
+### Miscellaneous
+- Documentation: Simplify page level docblock - @ivanlanin #179
+- Writer: Refactor writer classes and create a new `Write\AbstractWriter` abstract class - @ivanlanin #160
+- General: Refactor folders: `Element` and `Exception` - @ivanlanin #187
+- General: Remove legacy `HashTable` and `Shared\ZipStreamWrapper` and all related properties/methods - @ivanlanin #187
+- Element: New `AbstractElement` abstract class - @ivanlanin #187
+- Media: Refactor media class to use one method for all docPart (section, header, footer, footnote) - @ivanlanin #187
+- General: Remove underscore prefix from all private properties name - @ivanlanin #187
+- General: Move Section `Settings` to `Style\Section` - @ivanlanin #187
+- General: Give `Abstract` prefix and `Interface` suffix for all abstract classes and interfaces as per [PHP-FIG recommendation](https://github.com/php-fig/fig-standards/blob/master/bylaws/002-psr-naming-conventions.md) - @ivanlanin #187
+- Style: New `Style\AbstractStyle` abstract class - @ivanlanin #187
+- Writer: New 'ODText\Base` class - @ivanlanin #187
+- General: Rename `Footnote` to `Footnotes` to reflect the nature of collection - @ivanlanin
+- General: Add some unit tests for Shared & Element (100%!) - @Progi1984
+- Test: Add some samples and tests for image wrapping style - @brunocasado #59
+- Refactor: Remove Style\Tabs - @ivanlanin
+- Refactor: Apply composite pattern for writers - @ivanlanin
+- Refactor: Split `AbstractContainer` from `AbstractElement` - @ivanlanin
+- Refactor: Apply composite pattern for Word2007 reader - @ivanlanin
+
+
diff --git a/docs/changes/0.x/0.10.1.md b/docs/changes/0.x/0.10.1.md
new file mode 100644
index 0000000000..3fd3f620c9
--- /dev/null
+++ b/docs/changes/0.x/0.10.1.md
@@ -0,0 +1,9 @@
+
+
+# 0.10.1 (21 May 2014)
+
+This is a bugfix release for `php-zip` requirement in Composer.
+
+- Change Composer requirements for php-zip from `require` to `suggest` - @bskrtich #246
+
+
diff --git a/docs/changes/0.x/0.11.0.md b/docs/changes/0.x/0.11.0.md
new file mode 100644
index 0000000000..303b4fe66d
--- /dev/null
+++ b/docs/changes/0.x/0.11.0.md
@@ -0,0 +1,62 @@
+# 0.11.0 (1 June 2014)
+
+This release marked the change of PHPWord license from LGPL 2.1 to LGPL 3. Four new elements were added: TextBox, ListItemRun, Field, and Line. Relative and absolute positioning for images and textboxes were added. Writer classes were refactored into parts, elements, and styles. ODT and RTF features were enhanced. Ability to add elements to PHPWord object via HTML were implemented. RTF and HTML reader were initiated.
+
+### Features
+- Image: Ability to define relative and absolute positioning - @basjan #217
+- Footer: Conform footer with header by adding firstPage, evenPage and by inheritance - @basjan @ivanlanin #219
+- Element: New `TextBox` element - @basjan @ivanlanin #228, #229, #231
+- HTML: Ability to add elements to PHPWord object via html - @basjan #231
+- Element: New `ListItemRun` element that can add a list item with inline formatting like a textrun - @basjan #235
+- Table: Ability to add table inside a cell (nested table) - @ivanlanin #149
+- RTF Writer: UTF8 support for RTF: Internal UTF8 text is converted to Unicode before writing - @ivanlanin #158
+- Table: Ability to define table width (in percent and twip) and position - @ivanlanin #237
+- RTF Writer: Ability to add links and page breaks in RTF - @ivanlanin #196
+- ListItemRun: Remove fontStyle parameter because ListItemRun is inherited from TextRun and TextRun doesn't have fontStyle - @ivanlanin
+- Config: Ability to use a config file to store various common settings - @ivanlanin #200
+- ODT Writer: Enable inline font style in TextRun - @ivanlanin
+- ODT Writer: Enable underline, strike/doublestrike, smallcaps/allcaps, superscript/subscript font style - @ivanlanin
+- ODT Writer: Enable section and column - @ivanlanin
+- PDF Writer: Add TCPDF and mPDF as optional PDF renderer library - @ivanlanin
+- ODT Writer: Enable title element and custom document properties - @ivanlanin
+- ODT Reader: Ability to read standard and custom document properties - @ivanlanin
+- Word2007 Writer: Enable the missing custom document properties writer - @ivanlanin
+- Image: Enable "image float left" - @ivanlanin #244
+- RTF Writer: Ability to write document properties - @ivanlanin
+- RTF Writer: Ability to write image - @ivanlanin
+- Element: New `Field` element - @basjan #251
+- RTF Reader: Basic RTF reader - @ivanlanin #72, #252
+- Element: New `Line` element - @basjan #253
+- Title: Ability to apply numbering in heading - @ivanlanin #193
+- HTML Reader: Basic HTML reader - @ivanlanin #80, #254
+- RTF Writer: Basic table writing - @ivanlanin #245
+
+### Bugfixes
+- Header: All images added to the second header were assigned to the first header - @basjan #222
+- Conversion: Fix conversion from cm to pixel, pixel to cm, and pixel to point - @basjan #233, #234
+- PageBreak: Page break adds new line in the beginning of the new page - @ivanlanin #150
+- Image: `marginLeft` and `marginTop` cannot accept float value - @ivanlanin #248
+- Title: Orphan `w:fldChar` caused OpenOffice to crash when opening DOCX - @ivanlanin #236
+
+### Deprecated
+- Static classes `Footnotes`, `Endnotes`, and `TOC`
+- `Writer\Word2007\Part`: `Numbering::writeNumbering()`, `Settings::writeSettings()`, `WebSettings::writeWebSettings()`, `ContentTypes::writeContentTypes()`, `Styles::writeStyles()`, `Document::writeDocument()` all changed into `write()`
+- `Writer\Word2007\Part\DocProps`: Split into `Writer\Word2007\Part\DocPropsCore` and `Writer\Word2007\Part\DocPropsApp`
+- `Element\Title::getBookmarkId()` replaced by `Element\Title::getRelationId()`
+- `Writer\HTML::writeDocument`: Replaced by `Writer\HTML::getContent`
+
+### Miscellaneous
+- License: Change the project license from LGPL 2.1 into LGPL 3.0 - #211
+- Word2007 Writer: New `Style\Image` class - @ivanlanin
+- Refactor: Replace static classes `Footnotes`, `Endnotes`, and `TOC` with `Collections` - @ivanlanin #206
+- QA: Reactivate `phpcpd` and `phpmd` on Travis - @ivanlanin
+- Refactor: PHPMD recommendation: Change all `get...` method that returns `boolean` into `is...` or `has...` - @ivanlanin
+- Docs: Create gh-pages branch for API documentation - @Progi1984 #154
+- QA: Add `.scrutinizer.yml` and include `composer.lock` for preparation to Scrutinizer - @ivanlanin #186
+- Writer: Refactor writer parts using composite pattern - @ivanlanin
+- Docs: Show code quality and test code coverage badge on README
+- Style: Change behaviour of `set...` function of boolean properties; when none is defined, assumed true - @ivanlanin
+- Shared: Unify PHP ZipArchive and PCLZip features into PhpWord ZipArchive - @ivanlanin
+- Docs: Create VERSION file - @ivanlanin
+- QA: Improve dan update requirement check in `samples` folder - @ivanlanin
+
diff --git a/docs/changes/0.x/0.11.1.md b/docs/changes/0.x/0.11.1.md
new file mode 100644
index 0000000000..19be54c67c
--- /dev/null
+++ b/docs/changes/0.x/0.11.1.md
@@ -0,0 +1,5 @@
+# 0.11.1 (2 June 2014)
+
+This is an immediate bugfix release for HTML reader.
+
+- HTML Reader: `
` and header tags puts no output - @canyildiz @ivanlanin #257
diff --git a/docs/changes/0.x/0.12.0.md b/docs/changes/0.x/0.12.0.md
new file mode 100644
index 0000000000..28a1c3ec2f
--- /dev/null
+++ b/docs/changes/0.x/0.12.0.md
@@ -0,0 +1,60 @@
+# 0.12.0 (3 January 2015)
+
+This release added form fields (textinput, checkbox, and dropdown), drawing shapes (arc, curve, line, polyline, rect, oval), and basic 2D chart (pie, doughnut, bar, line, area, scatter, radar) elements along with some new styles. Basic MsDoc reader is introduced.
+
+### Features
+- Element: Ability to add drawing shapes (arc, curve, line, polyline, rect, oval) using new `Shape` element - @ivanlanin #123
+- Font: New `scale`, `spacing`, and `kerning` property of font style - @ivanlanin
+- Paragraph: Added shading to the paragraph style for full width shading - @lrobert #264
+- RTF Writer: Support for sections, margins, and borders - @ivanlanin #249
+- Section: Ability to set paper size, e.g. A4, A3, and Legal - @ivanlanin #249
+- General: New `PhpWord::save()` method to encapsulate `IOFactory` - @ivanlanin
+- General: New `Shared\Converter` static class - @ivanlanin
+- Chart: Basic 2D chart (pie, doughnut, bar, line, area, scatter, radar) - @ivanlanin #278
+- Chart: 3D charts and ability to set width and height - @ivanlanin
+- FormField: Ability to add textinput, checkbox, and dropdown form elements - @ivanlanin #266
+- Setting: Ability to define document protection (readOnly, comments, trackedChanges, forms) - @ivanlanin
+- Setting: Ability to remove [Compatibility Mode] text in the MS Word title bar - @ivanlanin
+- SDT: Ability to add structured document tag elements (comboBox, dropDownList, date) - @ivanlanin
+- Paragraph: Support for paragraph with borders - @ivanlanin #294
+- Word2007 Writer : Support for RTL - @Progi1984 #331
+- MsDOC Reader: Basic MsDOC Reader - @Progi1984 #23, #287
+- "absolute" horizontal and vertical positioning of Frame - @basjan #302
+- Add new-page function for PDF generation. For multiple PDF-backends - @chc88 #426
+- Report style options enumerated when style unknown - @h6w
+
+### Bugfixes
+- Fix rare PclZip/realpath/PHP version problem - @andrew-kzoo #261
+- `addHTML` encoding and ampersand fixes for PHP 5.3 - @bskrtich #270
+- Page breaks on titles and tables - @ivanlanin #274
+- Table inside vertical border does not rendered properly - @ivanlanin #280
+- `add` of container should be case insensitive, e.g. `addToc` should be accepted, not only `addTOC` - @ivanlanin #294
+- Fix specific borders (and margins) were not written correctly in word2007 writer - @pscheit #327
+- "HTML is not a valid writer" exception while running "Sample_36_RTL.php" - @RomanSyroeshko #340
+- "addShape()" magic method in AbstractContainer is mistakenly named as "addObject()" - @GMTA #356
+- `Element\Section::setPageSizeW()` and `Element\Section::setPageSizeH()` were mentioned in the docs but not implemented.
+- Special Characters (ampersand) in Title break docx output - @RomanSyroeshko #401
+- `
` tag is closed with `` tag: - @franzholz #438
+
+### Deprecated
+- `Element\Link::getTarget()` replaced by `Element\Link::getSource()`
+- `Element\Section::getSettings()` and `Element\Section::setSettings()` replaced by `Element\Section::getStyle()` and `Element\Section::setStyle()`
+- `Shared\Drawing` and `Shared\Font` merged into `Shared\Converter`
+- `DocumentProperties` replaced by `Metadata\DocInfo`
+- `Template` replaced by `TemplateProcessor`
+- `PhpWord->loadTemplate($filename)`
+
+### Miscellaneous
+- Docs: Add known issue on `README` about requirement for temporary folder to be writable and update `samples/index.php` for this requirement check - @ivanlanin #238
+- Docs: Correct elements.rst about Line - @chrissharkman #292
+- PclZip: Remove temporary file after used - @andrew-kzoo #265
+- Autoloader: Add the ability to set the autoloader options - @bskrtich #267
+- Element: Refactor elements to move set relation Id from container to element - @ivanlanin
+- Introduced CreateTemporaryFileException, CopyFileException - @RomanSyroeshko
+- Settings: added method to set user defined temporary directory - @RomanSyroeshko #310
+- Renamed `Template` into `TemplateProcessor` - @RomanSyroeshko #216
+- Reverted #51. All text escaping must be performed out of the library - @RomanSyroeshko #51
+
+
+
+v
\ No newline at end of file
diff --git a/docs/changes/0.x/0.12.1.md b/docs/changes/0.x/0.12.1.md
new file mode 100644
index 0000000000..db133ac462
--- /dev/null
+++ b/docs/changes/0.x/0.12.1.md
@@ -0,0 +1,11 @@
+# 0.12.1 (30 August 2015)
+
+Maintenance release. This release is focused primarily on `TemplateProcessor`.
+
+### Changes
+- Changed visibility of all private properties and methods of `TemplateProcessor` to `protected`. - @RomanSyroeshko #498
+- Improved performance of `TemplateProcessor::setValue()`. - @RomanSyroeshko @nicoSWD #513
+
+### Bugfixes
+- Fixed issue with "Access denied" message while opening `Sample_07_TemplateCloneRow.docx` and `Sample_23_TemplateBlock.docx` result files on Windows platform. - @RomanSyroeshko @AshSat #532
+- Fixed `PreserveText` element alignment in footer (see `Sample_12_HeaderFooter.php`). - @RomanSyroeshko @SSchwaiger #495
diff --git a/docs/changes/0.x/0.13.0.md b/docs/changes/0.x/0.13.0.md
new file mode 100644
index 0000000000..ece6d18990
--- /dev/null
+++ b/docs/changes/0.x/0.13.0.md
@@ -0,0 +1,47 @@
+# 0.13.0 (31 July 2016)
+
+This release brings several improvements in `TemplateProcessor`, automatic output escaping feature for OOXML, ODF, HTML, and RTF (turned off, by default).
+It also introduces constants for horizontal alignment options, and resolves some issues with PHP 7.
+Manual installation feature has been dropped since the release. Please, use [Composer](https://getcomposer.org/) to install PHPWord.
+
+### Added
+- Introduced the `\PhpOffice\PhpWord\SimpleType\Jc` simple type. - @RomanSyroeshko
+- Introduced the `\PhpOffice\PhpWord\SimpleType\JcTable` simple type. - @RomanSyroeshko
+- Introduced writer for the "Paragraph Alignment" element (see `\PhpOffice\PhpWord\Writer\Word2007\Element\ParagraphAlignment`). - @RomanSyroeshko
+- Introduced writer for the "Table Alignment" element (see `\PhpOffice\PhpWord\Writer\Word2007\Element\TableAlignment`). - @RomanSyroeshko
+- Supported indexed arrays in arguments of `TemplateProcessor::setValue()`. - @RomanSyroeshko #618
+- Introduced automatic output escaping for OOXML, ODF, HTML, and RTF. To turn the feature on use `phpword.ini` or `\PhpOffice\PhpWord\Settings`. - @RomanSyroeshko #483
+- Supported processing of headers and footers in `TemplateProcessor::applyXslStyleSheet()`. - @RomanSyroeshko #335
+
+### Changed
+- Improved error message for the case when `autoload.php` is not found. - @RomanSyroeshko #371
+- Renamed the `align` option of `NumberingLevel`, `Frame`, `Table`, and `Paragraph` styles into `alignment`. - @RomanSyroeshko
+- Improved performance of `TemplateProcessor::setValue()`. - @kazitanvirahsan #614, #617
+- Fixed some HTML tags not rendering any output (p, header & table) - #257, #324 - @twmobius and @garethellis
+
+### Deprecated
+- `getAlign` and `setAlign` methods of `NumberingLevel`, `Frame`, `Table`, and `Paragraph` styles.
+Use the correspondent `getAlignment` and `setAlignment` methods instead. - @RomanSyroeshko
+- `left`, `right`, and `justify` alignment options for paragraphs (now are mapped to `Jc::START`, `Jc::END`, and `Jc::BOTH`). - @RomanSyroeshko
+- `left`, `right`, and `justify` alignment options for tables (now are mapped to `Jc::START`, `Jc::END`, and `Jc::CENTER`). - @RomanSyroeshko
+- `TCPDF` due to its limited HTML support. Use `DomPDF` or `MPDF` writer instead. - @RomanSyroeshko #399
+
+### Removed
+- `\PhpOffice\PhpWord\Style\Alignment`. Style properties, which previously stored instances of this class, now deal with strings.
+In each case set of available string values is defined by the correspondent simple type. - @RomanSyroeshko
+- Manual installation support. Since the release we have dependencies on third party libraries,
+so installation via ZIP-archive download is not an option anymore. To install PHPWord use [Composer](https://getcomposer.org/).
+ We also removed `\PhpOffice\PhpWord\Autoloader`, because the latter change made it completely useless.
+ Autoloaders provided by Composer are in use now (see `bootstrap.php`). - @RomanSyroeshko
+- `\PhpOffice\PhpWord\Shared\Drawing` replaced by `\PhpOffice\Common\Drawing`. - @Progi1984 #658
+- `\PhpOffice\PhpWord\Shared\Font`. - @Progi1984 #658
+- `\PhpOffice\PhpWord\Shared\String` replaced by `\PhpOffice\Common\Text`. - @Progi1984 @RomanSyroeshko #658
+- `\PhpOffice\PhpWord\Shared\XMLReader` replaced by `\PhpOffice\Common\XMLReader`. - @Progi1984 #658
+- `\PhpOffice\PhpWord\Shared\XMLWriter` replaced by `\PhpOffice\Common\XMLWriter`. - @Progi1984 @RomanSyroeshko #658
+- `AbstractContainer::addMemoryImage()`. Use `AbstractContainer::addImage()` instead.
+
+### Fixed
+- `Undefined property` error while reading MS-DOC documents. - @jaberu #610
+- Corrupted OOXML template issue in case when its names is broken immediately after `$` sign.
+That case wasn't taken into account in implementation of `TemplateProcessor::fixBrokenMacros()`. - @RomanSyroeshko @d-damien #548
+
diff --git a/docs/changes/0.x/0.14.0.md b/docs/changes/0.x/0.14.0.md
new file mode 100644
index 0000000000..c6a71267d5
--- /dev/null
+++ b/docs/changes/0.x/0.14.0.md
@@ -0,0 +1,47 @@
+# 0.14.0 (29 Dec 2017)
+
+This release fixes several bugs and adds some new features.
+This version brings compatibility with PHP 7.0 & 7.1
+
+### Added
+- Possibility to control the footnote numbering -by [@troosan](https://github.com/troosan) in [#1068](https://github.com/PHPOffice/PHPWord/pull/1068)
+- Image creation from string -by [@troosan](https://github.com/troosan) in [#937](https://github.com/PHPOffice/PHPWord/pull/937)
+- Introduced the `\PhpOffice\PhpWord\SimpleType\NumberFormat` simple type. - @troosan
+- Support for ContextualSpacing -by [@postHawk](https://github.com/postHawk) in [#1088](https://github.com/PHPOffice/PHPWord/pull/1088)
+- Possiblity to hide spelling and/or grammatical errors -by [@troosan](https://github.com/troosan) in [#542](https://github.com/PHPOffice/PHPWord/pull/542)
+- Possiblity to set default document language as well as changing the language for each text element -by [@troosan](https://github.com/troosan) in [#1108](https://github.com/PHPOffice/PHPWord/pull/1108)
+- Support for Comments -by [@troosan](https://github.com/troosan) in [#1067](https://github.com/PHPOffice/PHPWord/pull/1067)
+- Support for paragraph textAlignment -by [@troosan](https://github.com/troosan) in [#1165](https://github.com/PHPOffice/PHPWord/pull/1165)
+- Add support for HTML underline tag `` in addHtml -by [@zNightFalLz](https://github.com/zNightFalLz) in [#1186](https://github.com/PHPOffice/PHPWord/pull/1186)
+- Add support for HTML ` ` in addHtml - @anrikunby [@troosan](https://github.com/troosan) in [#659](https://github.com/PHPOffice/PHPWord/pull/659)
+- Allow to change cell width unit - guillaume-ro-fr #986
+- Allow to change the line height rule @troosan
+- Implement PageBreak for odt writerby [@cookiekiller](https://github.com/cookiekiller) in [#863](https://github.com/PHPOffice/PHPWord/pull/863) #824
+- Allow to force an update of all fields on opening a document -by [@troosan](https://github.com/troosan) in [#951](https://github.com/PHPOffice/PHPWord/pull/951)
+- Allow adding a CheckBox in a TextRun -by [@irond](https://github.com/irond) in [#727](https://github.com/PHPOffice/PHPWord/pull/727)
+- Add support for HTML img tag -by [@srggroup](https://github.com/srggroup) in [#934](https://github.com/PHPOffice/PHPWord/pull/934)
+- Add support for password protection for docx -by [@mariahaubner](https://github.com/mariahaubner) in [#1019](https://github.com/PHPOffice/PHPWord/pull/1019)
+
+### Fixed
+- Loosen dependency to Zend
+- Images are not being printed when generating PDF -by [@hubertinio](https://github.com/hubertinio) in [#1074](https://github.com/PHPOffice/PHPWord/pull/1074) #431
+- Fixed some PHP 7 warnings - @ likeuntomurphy #927
+- Fixed PHP 7.2 compatibility (renamed `Object` class names to `ObjectElement`) -by [@SailorMax](https://github.com/SailorMax) in [#1185](https://github.com/PHPOffice/PHPWord/pull/1185)
+- Fixed Word 97 reader - @alsofronie @Benpxpxby [@mario-rivera](https://github.com/mario-rivera) in [#912](https://github.com/PHPOffice/PHPWord/pull/912) #920 #892
+- Fixed image loading over https -by [@troosan](https://github.com/troosan) in [#988](https://github.com/PHPOffice/PHPWord/pull/988)
+- Impossibility to set different even and odd page headers -by [@troosan](https://github.com/troosan) in [#981](https://github.com/PHPOffice/PHPWord/pull/981)
+- Fixed Word2007 reader where unnecessary paragraphs were being created -by [@donghaobo](https://github.com/donghaobo) in [#1043](https://github.com/PHPOffice/PHPWord/pull/1043) #620
+- Fixed Word2007 reader where margins were not being read correctly -by [@slowprog](https://github.com/slowprog) in [#885](https://github.com/PHPOffice/PHPWord/pull/885) #1008
+- Impossible to add element PreserveText in Section -by [@rvanlaak](https://github.com/rvanlaak) in [#452](https://github.com/PHPOffice/PHPWord/pull/452)
+- Added missing options for numbering format -by [@troosan](https://github.com/troosan) in [#1041](https://github.com/PHPOffice/PHPWord/pull/1041)
+- Fixed impossibility to set a different footer for first page -by [@ctrlaltca](https://github.com/ctrlaltca) in [#1116](https://github.com/PHPOffice/PHPWord/pull/1116),by [@aoloe](https://github.com/aoloe) in [#875](https://github.com/PHPOffice/PHPWord/pull/875)
+- Fixed styles not being applied by HTML writer, better pdf output -by [@sarke](https://github.com/sarke) in [#1047](https://github.com/PHPOffice/PHPWord/pull/1047) #500 #1139
+- Fixed read docx error when document contains image from remote url -by [@FBnil](https://github.com/FBnil) in [#1173](https://github.com/PHPOffice/PHPWord/pull/1173) #1176
+- Padded the $args array to remove error -by [@kaigoh](https://github.com/kaigoh) in [#1150](https://github.com/PHPOffice/PHPWord/pull/1150),by [@reformed](https://github.com/reformed) in [#870](https://github.com/PHPOffice/PHPWord/pull/870)
+- Fix incorrect image size between windows and mac -by [@bskrtich](https://github.com/bskrtich) in [#874](https://github.com/PHPOffice/PHPWord/pull/874)
+- Fix adding HTML table to document - @mogilvieby [@arivanbastos](https://github.com/arivanbastos) in [#324](https://github.com/PHPOffice/PHPWord/pull/324)
+- Fix parsing on/off values (w:val="true|false|1|0|on|off") -by [@troosan](https://github.com/troosan) in [#1221](https://github.com/PHPOffice/PHPWord/pull/1221) #1219
+- Fix error on Empty Dropdown Entry -by [@ComputerTinker](https://github.com/ComputerTinker) in [#592](https://github.com/PHPOffice/PHPWord/pull/592)
+
+### Deprecated
+- PhpWord->getProtection(), get it from the settings instead PhpWord->getSettings()->getDocumentProtection();
diff --git a/docs/changes/0.x/0.15.0.md b/docs/changes/0.x/0.15.0.md
new file mode 100644
index 0000000000..4fa0b8811d
--- /dev/null
+++ b/docs/changes/0.x/0.15.0.md
@@ -0,0 +1,45 @@
+# 0.15.0 (14 Jul 2018)
+
+### Added
+- Parsing of `align` HTML attribute -by [@troosan](https://github.com/troosan) in [#1231](https://github.com/PHPOffice/PHPWord/pull/1231)
+- Parse formatting inside HTML lists - @troosanby [@samimussbach](https://github.com/samimussbach) in [#1239](https://github.com/PHPOffice/PHPWord/pull/1239) / [#945](https://github.com/PHPOffice/PHPWord/pull/945) / [#1215](https://github.com/PHPOffice/PHPWord/pull/1215) / [#508](https://github.com/PHPOffice/PHPWord/pull/508)
+- Parsing of CSS `direction` instruction, HTML `lang` attribute, formatting inside table cell -by [@troosan](https://github.com/troosan) in [#1273](https://github.com/PHPOffice/PHPWord/pull/1273) / [#1252](https://github.com/PHPOffice/PHPWord/pull/1252) / [#1254](https://github.com/PHPOffice/PHPWord/pull/1254)
+- Add support for Track changes @Cipby [@troosan](https://github.com/troosan) in [#354](https://github.com/PHPOffice/PHPWord/pull/354) / [#1262](https://github.com/PHPOffice/PHPWord/pull/1262)
+- Add support for fixed Table Layout @aoloe @ekopachby [@troosan](https://github.com/troosan) in [#841](https://github.com/PHPOffice/PHPWord/pull/841) / [#1276](https://github.com/PHPOffice/PHPWord/pull/1276)
+- Add support for Cell Spacing @dox07by [@troosan](https://github.com/troosan) in [#1040](https://github.com/PHPOffice/PHPWord/pull/1040)
+- Add parsing of formatting inside lists @atomicalnetby [@troosan](https://github.com/troosan) in [#594](https://github.com/PHPOffice/PHPWord/pull/594)
+- Added support for Vertically Raised or Lowered Text (w:position) @anrikunby [@troosan](https://github.com/troosan) in [#640](https://github.com/PHPOffice/PHPWord/pull/640)
+- Add support for MACROBUTTON field @phryneasby [@troosan](https://github.com/troosan) in [#1021](https://github.com/PHPOffice/PHPWord/pull/1021)
+- Add support for Hyphenationby [@Trainmaster](https://github.com/Trainmaster) in [#1282](https://github.com/PHPOffice/PHPWord/pull/1282) (Document: `autoHyphenation`, `consecutiveHyphenLimit`, `hyphenationZone`, `doNotHyphenateCaps`, Paragraph: `suppressAutoHyphens`)
+- Added support for Floating Table Positioning (tblpPr)by [@anrikun](https://github.com/anrikun) in [#639](https://github.com/PHPOffice/PHPWord/pull/639)
+- Added support for Image text wrapping distanceby [@troosan](https://github.com/troosan) in [#1310](https://github.com/PHPOffice/PHPWord/pull/1310)
+- Added parsing of CSS line-height and text-indent in HTML readerby [@troosan](https://github.com/troosan) in [#1316](https://github.com/PHPOffice/PHPWord/pull/1316)
+- Added the ability to enable gridlines and axislabels on chartsby [@FrankMeyer](https://github.com/FrankMeyer) in [#576](https://github.com/PHPOffice/PHPWord/pull/576)
+- Add support for table indent (tblInd)by [@Trainmaster](https://github.com/Trainmaster) in [#1343](https://github.com/PHPOffice/PHPWord/pull/1343)
+- Added parsing of internal links in HTML readerby [@lalop](https://github.com/lalop) in [#1336](https://github.com/PHPOffice/PHPWord/pull/1336)
+- Several improvements to chartsby [@JAEK-S](https://github.com/JAEK-S) in [#1332](https://github.com/PHPOffice/PHPWord/pull/1332)
+- Add parsing of html image in base64 formatby [@jgpATs2w](https://github.com/jgpATs2w) in [#1382](https://github.com/PHPOffice/PHPWord/pull/1382)
+- Added Support for Indentation & Tabs on RTF Writer.by [@smaug1985](https://github.com/smaug1985) in [#1405](https://github.com/PHPOffice/PHPWord/pull/1405)
+- Allows decimal numbers in HTML line-height styleby [@jgpATs2w](https://github.com/jgpATs2w) in [#1413](https://github.com/PHPOffice/PHPWord/pull/1413)
+
+### Fixed
+- Fix reading of docx default style -by [@troosan](https://github.com/troosan) in [#1238](https://github.com/PHPOffice/PHPWord/pull/1238)
+- Fix the size unit of when parsing html images -by [@troosan](https://github.com/troosan) in [#1254](https://github.com/PHPOffice/PHPWord/pull/1254)
+- Fixed HTML parsing of nested lists -by [@troosan](https://github.com/troosan) in [#1265](https://github.com/PHPOffice/PHPWord/pull/1265)
+- Save PNG alpha information when using remote images.by [@samsullivan](https://github.com/samsullivan) in [#779](https://github.com/PHPOffice/PHPWord/pull/779)
+- Fix parsing of `` tag.by [@troosan](https://github.com/troosan) in [#1274](https://github.com/PHPOffice/PHPWord/pull/1274)
+- Bookmark are not writton as internal link in html writerby [@troosan](https://github.com/troosan) in [#1263](https://github.com/PHPOffice/PHPWord/pull/1263)
+- It should be possible to add a Footnote in a ListItemRunby [@troosan](https://github.com/troosan) in [#1287](https://github.com/PHPOffice/PHPWord/pull/1287) #1287
+- Fix colspan and rowspan for tables in HTML Writerby [@mattbolt](https://github.com/mattbolt) in [#1292](https://github.com/PHPOffice/PHPWord/pull/1292)
+- Fix parsing of Heading and Title formating @troosanby [@gthomas2](https://github.com/gthomas2) in [#465](https://github.com/PHPOffice/PHPWord/pull/465)
+- Fix Dateformat typo, fix hours casing, add Month-Day-Year formatsby [@ComputerTinker](https://github.com/ComputerTinker) in [#591](https://github.com/PHPOffice/PHPWord/pull/591)
+- Support reading of w:drawing for documents produced by word 2011+by [@gthomas2](https://github.com/gthomas2) in [#464](https://github.com/PHPOffice/PHPWord/pull/464) #1324
+- Fix missing column width in ODText writerby [@potofcoffee](https://github.com/potofcoffee) in [#413](https://github.com/PHPOffice/PHPWord/pull/413)
+- Disable entity loader before parsing XML to avoid XXE injectionby [@Tom4t0](https://github.com/Tom4t0) in [#1427](https://github.com/PHPOffice/PHPWord/pull/1427)
+
+### Changed
+- Remove zend-stdlib dependencyby [@Trainmaster](https://github.com/Trainmaster) in [#1284](https://github.com/PHPOffice/PHPWord/pull/1284)
+- The default unit for `\PhpOffice\PhpWord\Style\Image` changed from `px` to `pt`.
+
+### Miscellaneous
+- Drop GitHub pages, switch to coveralls for code coverage analysisby [@czosel](https://github.com/czosel) in [#1360](https://github.com/PHPOffice/PHPWord/pull/1360)
diff --git a/docs/changes/0.x/0.16.0.md b/docs/changes/0.x/0.16.0.md
new file mode 100644
index 0000000000..3eccc34d03
--- /dev/null
+++ b/docs/changes/0.x/0.16.0.md
@@ -0,0 +1,27 @@
+# 0.16.0 (30 dec 2018)
+
+### Added
+- Add getVariableCount method in TemplateProcessor.by [@nicoder](https://github.com/nicoder) in [#1272](https://github.com/PHPOffice/PHPWord/pull/1272)
+- Add setting Chart Title and Legend visibilityby [@Tom-Magill](https://github.com/Tom-Magill) in [#1433](https://github.com/PHPOffice/PHPWord/pull/1433)
+- Add ability to pass a Style object in Section constructorby [@ndench](https://github.com/ndench) in [#1416](https://github.com/PHPOffice/PHPWord/pull/1416)
+- Add support for hidden textby [@Alexmg86](https://github.com/Alexmg86) in [#1527](https://github.com/PHPOffice/PHPWord/pull/1527)
+- Add support for setting images in TemplateProcessorby [@SailorMax](https://github.com/SailorMax) in [#1170](https://github.com/PHPOffice/PHPWord/pull/1170)
+- Add "Plain Text" type to SDT (Structured Document Tags)by [@morrisdj](https://github.com/morrisdj) in [#1541](https://github.com/PHPOffice/PHPWord/pull/1541)
+- Added possibility to index variables inside cloned block in TemplateProcessorby [@JPBetley](https://github.com/JPBetley) in [#817](https://github.com/PHPOffice/PHPWord/pull/817)
+- Added possibility to replace variables inside cloned block with values in TemplateProcessorby [@DIDoS](https://github.com/DIDoS) in [#1392](https://github.com/PHPOffice/PHPWord/pull/1392)
+
+### Fixed
+- Fix regex in `cloneBlock` functionby [@nicoder](https://github.com/nicoder) in [#1269](https://github.com/PHPOffice/PHPWord/pull/1269)
+- HTML Title Writer loses text when Title contains a TextRun instead a string.by [@begnini](https://github.com/begnini) in [#1436](https://github.com/PHPOffice/PHPWord/pull/1436)
+- Fix regex in fixBrokenMacros, make it less greedy @MuriloSo @brainwoodby [@yurii-sio2](https://github.com/yurii-sio2) in [#1502](https://github.com/PHPOffice/PHPWord/pull/1502) / [#1345](https://github.com/PHPOffice/PHPWord/pull/1345)
+- 240 twips are being added to line spacing, should not happen when using lineRule fixedby [@troosan](https://github.com/troosan) in [#1509](https://github.com/PHPOffice/PHPWord/pull/1509) / [#1505](https://github.com/PHPOffice/PHPWord/pull/1505)
+- Adding table layout to the generated HTMLby [@aarangara](https://github.com/aarangara) in [#1441](https://github.com/PHPOffice/PHPWord/pull/1441)
+- Fix loading of Sharepoint documentby [@Garrcomm](https://github.com/Garrcomm) in [#1498](https://github.com/PHPOffice/PHPWord/pull/1498)
+- RTF writer: Round getPageSizeW and getPageSizeH to avoid decimalsby [@Patrick64](https://github.com/Patrick64) in [#1493](https://github.com/PHPOffice/PHPWord/pull/1493)
+- Fix parsing of Office 365 documentsby [@Timanx](https://github.com/Timanx) in [#1485](https://github.com/PHPOffice/PHPWord/pull/1485)
+- For RTF writers, sizes should should never have decimalsby [@Samuel-BF](https://github.com/Samuel-BF) in [#1536](https://github.com/PHPOffice/PHPWord/pull/1536)
+- Style Name Parsing fails if document generated by a non-english word versionby [@begnini](https://github.com/begnini) in [#1434](https://github.com/PHPOffice/PHPWord/pull/1434)
+
+### Miscellaneous
+- Get rid of duplicated code in TemplateProcessorby [@abcdmitry](https://github.com/abcdmitry) in [#1161](https://github.com/PHPOffice/PHPWord/pull/1161)
+
diff --git a/docs/changes/0.x/0.17.0.md b/docs/changes/0.x/0.17.0.md
new file mode 100644
index 0000000000..ffd2d91dd4
--- /dev/null
+++ b/docs/changes/0.x/0.17.0.md
@@ -0,0 +1,27 @@
+# 0.17.0 (01 oct 2019)
+
+### Added
+- Add methods setValuesFromArray and cloneRowFromArray to the TemplateProcessor [@geraldb-nicat](https://github.com/geraldb-nicat) GH-670
+- Set complex type in template [@troosan](https://github.com/troosan) GH-1565
+- implement support for section vAlign [@troosan](https://github.com/troosan) GH-1569
+- ParseStyle for border-color [@Gllrm0](https://github.com/Gllrm0) GH-1551
+- Html writer auto invert text color [@SailorMax](https://github.com/SailorMax) GH-1387
+- Add RightToLeft table presentation. [@troosan](https://github.com/troosan) GH-1550
+- Add support for page vertical alignment. [@troosan](https://github.com/troosan) GH-672 GH-1569
+- Adding setNumId method for ListItem style [@eweso](https://github.com/eweso) GH-1329
+- Add support for basic fields in RTF writer. [@Samuel-BF](https://github.com/Samuel-BF) GH-1717
+
+### Fixed
+- Fix HTML border-color parsing. [@troosan](https://github.com/troosan) GH-1551 / GH-1570
+- Language::validateLocale should pass with locale 'zxx'. [@efpapado](https://github.com/efpapado) GH-1558
+- can't align center vertically with the text [@ter987](https://github.com/ter987) GH-672
+- fix parsing of border-color and add test [@troosan](https://github.com/troosan) GH-1570
+- TrackChange doesn't handle all return types of \DateTime::createFromFormat(...) [@superhaggis](https://github.com/superhaggis) GH-1584
+- To support PreserveText inside sub container [@bhattnishant](https://github.com/bhattnishant) GH-1637
+- No nested w:pPr elements in ListItemRun. [@waltertamboer](https://github.com/waltertamboer) GH-1628
+- Ensure that entity_loader disable variable is re-set back to the original setting [@seamuslee001](https://github.com/seamuslee001) GH-1585
+
+### Miscellaneous
+- Use embedded http server to test loading of remote images [@troosan](https://github.com/troosan) GH-1544
+- Change private to protected to be able extending class Html [@SpinyMan](https://github.com/SpinyMan) GH-1646
+- Fix apt-get crash in Travis CI for PHP 5.3 [@mdupont](https://github.com/mdupont) GH-1707
\ No newline at end of file
diff --git a/docs/changes/0.x/0.18.0.md b/docs/changes/0.x/0.18.0.md
new file mode 100644
index 0000000000..5f9d6a4d2f
--- /dev/null
+++ b/docs/changes/0.x/0.18.0.md
@@ -0,0 +1,47 @@
+# [0.18.0](https://github.com/PHPOffice/PHPWord/tree/0.18.0) (2021-02-12)
+
+[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/0.17.0...0.18.0)
+
+### Enhancements
+- Add support for charts in template processor [#2012](https://github.com/PHPOffice/PHPWord/pull/2012) ([@dbarzin](https://github.com/dbarzin))
+- add/setting page element border style. [#1986](https://github.com/PHPOffice/PHPWord/pull/1986) ([@emnabs](https://github.com/emnabs))
+- allow to use customized pdf library [#1983](https://github.com/PHPOffice/PHPWord/pull/1983) ([@SailorMax](https://github.com/SailorMax))
+- feat: Update addHtml to handle style inheritance [#1965](https://github.com/PHPOffice/PHPWord/pull/1965) ([@Julien1138](https://github.com/Julien1138))
+- Add parsing of Shape node values [#1924](https://github.com/PHPOffice/PHPWord/pull/1924) ([@sven-ahrens](https://github.com/sven-ahrens))
+- Allow to redefine TCPDF object [#1907](https://github.com/PHPOffice/PHPWord/pull/1907) ([@SailorMax](https://github.com/SailorMax))
+- Enhancements to addHTML parser [#1902](https://github.com/PHPOffice/PHPWord/pull/1902) ([@lubosdz](https://github.com/lubosdz))
+- Make Default Paper Configurable [#1851](https://github.com/PHPOffice/PHPWord/pull/1851) ([@oleibman](https://github.com/oleibman))
+- Implement various missing features for the ODT writer [#1796](https://github.com/PHPOffice/PHPWord/pull/1796) ([@oleibman](https://github.com/oleibman))
+- Added support for "cloudConvert" images [#1794](https://github.com/PHPOffice/PHPWord/pull/1794) ([@ErnestStaug](https://github.com/ErnestStaug))
+- Add support for several features for the RTF writer [#1775](https://github.com/PHPOffice/PHPWord/pull/1775) ([@oleibman](https://github.com/oleibman))
+- Add font style for Field elements [#1774](https://github.com/PHPOffice/PHPWord/pull/1774) ([@oleibman](https://github.com/oleibman))
+- Add support for ListItemRun in HTML writer [#1766](https://github.com/PHPOffice/PHPWord/pull/1766) ([@stefan-91](https://github.com/stefan-91))
+- Improvements in RTF writer [#1755](https://github.com/PHPOffice/PHPWord/pull/1755) ([@oleibman](https://github.com/oleibman))
+- Allow a closure to be passed with image replacement tags [#1716](https://github.com/PHPOffice/PHPWord/pull/1716) ([@mbardelmeijer](https://github.com/mbardelmeijer))
+- Add Option for Dynamic Chart Legend Position [#1699](https://github.com/PHPOffice/PHPWord/pull/1699) ([@Stephan212](https://github.com/Stephan212))
+- Add parsing of HTML checkbox input field [#1832](https://github.com/PHPOffice/PHPWord/pull/1832) ([@Matze2010](https://github.com/Matze2010))
+
+### Bug fixes
+- Fix image stroke in libreoffice 7.x [#1992](https://github.com/PHPOffice/PHPWord/pull/1992) ([@Adizbek](https://github.com/Adizbek))
+- Fix deprecated warning for non-hexadecimal number [#1988](https://github.com/PHPOffice/PHPWord/pull/1988) ([@Ciki](https://github.com/Ciki))
+- Fix limit not taken into account when adding image in template [#1967](https://github.com/PHPOffice/PHPWord/pull/1967) ([@jsochor](https://github.com/jsochor))
+- Add null check when setComplexValue is not found [#1936](https://github.com/PHPOffice/PHPWord/pull/1936) ([@YannikFirre](https://github.com/YannikFirre))
+- Some document have non-standard locale code [#1824](https://github.com/PHPOffice/PHPWord/pull/1824) ([@ErnestStaug](https://github.com/ErnestStaug))
+- Fixes PHPDoc @param and @return types for several Converter methods [#1818](https://github.com/PHPOffice/PHPWord/pull/1818) ([@caugner](https://github.com/caugner))
+- Update the regexp to avoid catastrophic backtracking [#1809](https://github.com/PHPOffice/PHPWord/pull/1809) ([@juzser](https://github.com/juzser))
+- Fix PHPUnit tests on develop branch [#1771](https://github.com/PHPOffice/PHPWord/pull/1771) ([@mdupont](https://github.com/mdupont))
+- TemplateProcessor cloneBlock wrongly clones images [#1763](https://github.com/PHPOffice/PHPWord/pull/1763) ([@alarai](https://github.com/alarai))
+
+### Miscellaneous
+- Compatibility with PHP 7.4, PHP 8.0 and migrate to Laminas Escaper [#1946](https://github.com/PHPOffice/PHPWord/pull/1946) ([@liborm85](https://github.com/liborm85))
+- Remove legacy PHPOffice/Common package, fix PHP 8.0 compatibility [#1996](https://github.com/PHPOffice/PHPWord/pull/1996) ([@liborm85](https://github.com/liborm85))
+- Improve Word2007 Test Coverage [#1858](https://github.com/PHPOffice/PHPWord/pull/1858) ([@oleibman](https://github.com/oleibman))
+- Fix typo in docs. Update templates-processing.rst [#1952](https://github.com/PHPOffice/PHPWord/pull/1952) ([@mnvx](https://github.com/mnvx))
+- Fix documentation and method name for FootnoteProperties [#1776](https://github.com/PHPOffice/PHPWord/pull/1776) ([@mdupont](https://github.com/mdupont))
+- fix: documentation about paragraph indentation [#1764](https://github.com/PHPOffice/PHPWord/pull/1764) ([@mdupont](https://github.com/mdupont))
+- Update templates-processing.rst [#1745](https://github.com/PHPOffice/PHPWord/pull/1745) ([@igronus](https://github.com/igronus))
+- Unused variables $rows, $cols in sample [#1877](https://github.com/PHPOffice/PHPWord/pull/1877) ([@ThanasisMpalatsoukas](https://github.com/ThanasisMpalatsoukas))
+- Add unit test for NumberingStyle [#1744](https://github.com/PHPOffice/PHPWord/pull/1744) ([@Manunchik](https://github.com/Manunchik))
+- Add unit test for PhpWord Settings [#1743](https://github.com/PHPOffice/PHPWord/pull/1743) (@[Manunchik](https://github.com/Manunchik))
+- Add unit test for Media elements [#1742](https://github.com/PHPOffice/PHPWord/pull/1742) ([@Manunchik](https://github.com/Manunchik))
+- Update templates processing docs [#1729](https://github.com/PHPOffice/PHPWord/pull/1729) ([@hcdias](https://github.com/hcdias))
diff --git a/docs/changes/0.x/0.18.1.md b/docs/changes/0.x/0.18.1.md
new file mode 100644
index 0000000000..f4e1547a26
--- /dev/null
+++ b/docs/changes/0.x/0.18.1.md
@@ -0,0 +1,7 @@
+# [0.18.1](https://github.com/PHPOffice/PHPWord/tree/0.18.1) (2021-03-08)
+
+[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/0.18.0...0.18.1)
+
+### Bug fixes
+- Fix BC break in GH-1946.
+ This package does not replace laminas/laminas-zendframework-bridge by [@mussbach](https://github.com/mussbach) in [#2032](https://github.com/PHPOffice/PHPWord/pull/2032)
\ No newline at end of file
diff --git a/docs/changes/0.x/0.18.2.md b/docs/changes/0.x/0.18.2.md
new file mode 100644
index 0000000000..fe40b7eb3a
--- /dev/null
+++ b/docs/changes/0.x/0.18.2.md
@@ -0,0 +1,14 @@
+# [0.18.2](https://github.com/PHPOffice/PHPWord/tree/0.18.2) (2021-06-04)
+
+[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/0.18.1...0.18.2)
+
+### Bug fixes
+- when adding image to relationship first check that the generated RID is actually unique by [@tpv-ebben](https://github.com/tpv-ebben) in [#2063](https://github.com/PHPOffice/PHPWord/pull/2063)
+- Update chart, don't write 'c:overlap' if grouping is 'clustered' by [@dfsd534](https://github.com/dfsd534) in [#2052](https://github.com/PHPOffice/PHPWord/pull/2052)
+- Update Html parser to accept line-height:normal by [@joelgo](https://github.com/joelgo) in [#2041](https://github.com/PHPOffice/PHPWord/pull/2041)
+- Fix image border in Word2007 Writer for LibreOffice 7 by [k@amilmmach](https://github.com/kamilmmach) in [#2021](https://github.com/PHPOffice/PHPWord/pull/2021)
+
+### Miscellaneous
+- Corrected namespace for Language class in docs by [@MegaChriz](https://github.com/MegaChriz) in [#2087](https://github.com/PHPOffice/PHPWord/pull/2087)
+- Added support for Garamond font by [@artemkolotilkin](https://github.com/artemkolotilkin) in [#2078](https://github.com/PHPOffice/PHPWord/pull/2078)
+- Add BorderStyle for Cell Style to documentation by [@DShkrabak](https://github.com/DShkrabak) in [#2090](https://github.com/PHPOffice/PHPWord/pull/2090)
diff --git a/docs/changes/0.x/0.18.3.md b/docs/changes/0.x/0.18.3.md
new file mode 100644
index 0000000000..123fe1f2b0
--- /dev/null
+++ b/docs/changes/0.x/0.18.3.md
@@ -0,0 +1,6 @@
+# [0.18.3](https://github.com/PHPOffice/PHPWord/tree/0.18.3) (2022-02-17)
+
+[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/0.18.2...0.18.3)
+
+### Bug fixes
+- PHP 8.1 compatibility
diff --git a/docs/changes/0.x/0.7.0.md b/docs/changes/0.x/0.7.0.md
new file mode 100644
index 0000000000..11c3784bc3
--- /dev/null
+++ b/docs/changes/0.x/0.7.0.md
@@ -0,0 +1,26 @@
+# 0.7.0 (28 Jan 2014)
+
+This is the first release after a long development hiatus in [CodePlex](https://phpword.codeplex.com/). This release initialized ODT and RTF Writer, along with some other new features for the existing Word2007 Writer, e.g. tab, multiple header, rowspan and colspan. [Composer](https://packagist.org/packages/phpoffice/phpword) and [Travis](https://travis-ci.org/PHPOffice/PHPWord) were added.
+
+### Features
+- Implement RTF Writer - @Progi1984 #1
+- Implement ODT Writer - @Progi1984 #2
+- Word2007: Add rowspan and colspan to cells - @kaystrobach
+- Word2007: Support for tab stops - @RLovelett
+- Word2007: Support Multiple headers - @RLovelett
+- Word2007: Wrapping Styles to Images - @gabrielbull
+- Added support for image wrapping style - @gabrielbull
+
+### Bugfixes
+- "Warning: Invalid error type specified in ...\PHPWord.php on line 226" is thrown when the specified template file is not found - @RomanSyroeshko #32
+- PHPWord_Shared_String.IsUTF8 returns FALSE for Cyrillic UTF-8 input - @RomanSyroeshko #34
+- Temporary files naming logic in PHPWord_Template can lead to a collision - @RomanSyroeshko #38
+
+### Miscellaneous
+- Add superscript/subscript styling in Excel2007 Writer - @MarkBaker
+- add indentation support to paragraphs - @deds
+- Support for Composer - @Progi1984 #27
+- Basic CI with Travis - @Progi1984
+- Added PHPWord_Exception and exception when could not copy the template - @Progi1984
+- IMPROVED: Moved examples out of Classes directory - @Progi1984
+- IMPROVED: Advanced string replace in setValue for Template - @Esmeraldo [#49](http://phpword.codeplex.com/workitem/49)
\ No newline at end of file
diff --git a/docs/changes/0.x/0.8.0.md b/docs/changes/0.x/0.8.0.md
new file mode 100644
index 0000000000..6d5ae7c37c
--- /dev/null
+++ b/docs/changes/0.x/0.8.0.md
@@ -0,0 +1,45 @@
+# 0.8.0 (15 Mar 2014)
+
+This release merged a lot of improvements from the community. Unit tests introduced in this release and has reached 90% code coverage.
+
+### Features
+- Template: Permit to save a template generated as a file (PHPWord_Template::saveAs()) - @RomanSyroeshko #56, #57
+- Word2007: Support sections page numbering - @gabrielbull
+- Word2007: Added line height methods to mirror the line height settings in Word in the paragraph styling - @gabrielbull
+- Word2007: Added support for page header & page footer height - @JillElaine #5
+- General: Add ability to manage line breaks after image insertion - @bskrtich #6, #66, #84
+- Template: Ability to limit number of replacements performed by setValue() method of Template class - @RomanSyroeshko #52, #53, #85
+- Table row: Repeat as header row & allow row to break across pages - @ivanlanin #48, #86
+- Table: Table width in percentage - @ivanlanin #48, #86
+- Font: Superscript and subscript - @ivanlanin #48, #86
+- Paragraph: Hanging paragraph - @ivanlanin #48, #86
+- Section: Multicolumn and section break - @ivanlanin #48, #86
+- Template: Ability to apply XSL style sheet to Template - @RomanSyroeshko #46, #47, #83
+- General: PHPWord_Shared_Font::pointSizeToTwips() converter - @ivanlanin #87
+- Paragraph: Ability to define normal paragraph style with PHPWord::setNormalStyle() - @ivanlanin #87
+- Paragraph: Ability to define parent style (basedOn) and style for following paragraph (next) - @ivanlanin #87
+- Clone table rows on the fly when using a template document - @jeroenmoors #44, #88
+- Initial addition of basic footnote support - @deds #16
+- Paragraph: Ability to define paragraph pagination: widow control, keep next, keep lines, and page break before - @ivanlanin #92
+- General: PHPWord_Style_Font refactoring - @ivanlanin #93
+- Font: Use points instead of halfpoints internally. Conversion to halfpoints done during XML Writing. - @ivanlanin #93
+- Paragraph: setTabs() function - @ivanlanin #92
+- General: Basic support for TextRun on ODT and RTF - @ivanlanin #99
+- Reader: Basic Reader for Word2007 - @ivanlanin #104
+- TextRun: Allow Text Break in Text Run - @bskrtich #109
+- General: Support for East Asian fontstyle - @jhfangying #111, #118
+- Image: Use exif_imagetype to check image format instead of extension name - @gabrielbull #114
+- General: Setting for XMLWriter Compatibility option - @bskrtich #103
+- MemoryImage: Allow remote image when allow_url_open = on - @ivanlanin #122
+- TextBreak: Allow font and paragraph style for text break - @ivanlanin #18
+
+### Bugfixes
+- Fixed bug with cell styling - @gabrielbull
+- Fixed bug list items inside of cells - @gabrielbull
+- Adding a value that contains "&" in a template breaks it - @SiebelsTim #51
+- Example in README.md is broken - @Progi1984 #89
+- General: PHPWord_Shared_Drawing::centimetersToPixels() conversion - @ivanlanin #94
+- Footnote: Corrupt DOCX reported by MS Word when sections > 1 and not every sections have footnote - @ivanlanin #125
+
+### Miscellaneous
+- UnitTests - @Progi1984
\ No newline at end of file
diff --git a/docs/changes/0.x/0.8.1.md b/docs/changes/0.x/0.8.1.md
new file mode 100644
index 0000000000..340e6e369a
--- /dev/null
+++ b/docs/changes/0.x/0.8.1.md
@@ -0,0 +1,9 @@
+
+# 0.8.1 (17 Mar 2014)
+
+This is a bugfix release for image detection functionality.
+
+- Added fallback for computers that do not have exif_imagetype - @bskrtich, @gabrielbull
+
+
+
diff --git a/docs/changes/0.x/0.9.0.md b/docs/changes/0.x/0.9.0.md
new file mode 100644
index 0000000000..8b96f24a77
--- /dev/null
+++ b/docs/changes/0.x/0.9.0.md
@@ -0,0 +1,19 @@
+# 0.9.0 (26 Mar 2014)
+
+This release marked the transformation to namespaces (PHP 5.3+).
+
+### Features
+- Image: Ability to use remote or GD images using `addImage()` on sections, headers, footer, cells, and textruns - @ivanlanin
+- Header: Ability to use remote or GD images using `addWatermark()` - @ivanlanin
+
+### Bugfixes
+- Preserve text doesn't render correctly when the text is not the first word, e.g. 'Page {PAGE}' - @ivanlanin
+
+### Miscellaneous
+- Move documentation to [Read The Docs](http://phpword.readthedocs.org/en/develop/) - by [@Progi1984](https://github.com/Progi1984) & [@ivanlanin](https://github.com/ivanlanin) in [#82](https://github.com/PHPOffice/PHPWord/pull/82)
+- Reorganize and redesign samples folder - @ivanlanin #137
+- Use `PhpOffice\PhpWord` namespace for PSR compliance - @RomanSyroeshko @gabrielbull #159, #58
+- Restructure folders and change folder name `Classes` to `src` and `Tests` to `test` for PSR compliance - @RomanSyroeshko @gabrielbull
+- Compliance to phpDocumentor - @ivanlanin
+- Merge Style\TableFull into Style\Table. Style\TableFull is deprecated - @ivanlanin #160
+- Merge Section\MemoryImage into Section\Image. Section\Image is deprecated - @ivanlanin #160
diff --git a/docs/changes/0.x/0.9.1.md b/docs/changes/0.x/0.9.1.md
new file mode 100644
index 0000000000..9278f916cf
--- /dev/null
+++ b/docs/changes/0.x/0.9.1.md
@@ -0,0 +1,8 @@
+
+# 0.9.1 (27 Mar 2014)
+
+This is a bugfix release for PSR-4 compatibility.
+
+- Fixed PSR-4 composer autoloader - @AntonTyutin
+
+
diff --git a/docs/changes/1.x/1.0.0.md b/docs/changes/1.x/1.0.0.md
new file mode 100644
index 0000000000..4240a0bd18
--- /dev/null
+++ b/docs/changes/1.x/1.0.0.md
@@ -0,0 +1,110 @@
+# [1.0.0](https://github.com/PHPOffice/PHPWord/tree/1.0.0) (2022-11-15)
+
+[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/0.18.3...1.0.0)
+
+### BREAKING CHANGE
+
+Most deprecated things were dropped. See details in
+https://github.com/PHPOffice/PHPWord/commit/b9f1151bc6f90c276153c3c9dca10a5fc7f355fb.
+
+#### Dropped classes:
+
+- `PhpOffice\PhpWord\Template`
+
+#### Dropped constants:
+
+- `PhpOffice\PhpWord\Style\Font::UNDERLINE_DOTHASH`
+- `PhpOffice\PhpWord\Style\Font::UNDERLINE_DOTHASHHEAVY`
+- `PhpOffice\PhpWord\Style\Cell::VALIGN_TOP`
+- `PhpOffice\PhpWord\Style\Cell::VALIGN_CENTER`
+- `PhpOffice\PhpWord\Style\Cell::VALIGN_BOTTOM`
+- `PhpOffice\PhpWord\Style\Cell::VALIGN_BOTH`
+- `PhpOffice\PhpWord\Style\TOC::TABLEADER_DOT`
+- `PhpOffice\PhpWord\Style\TOC::TABLEADER_UNDERSCORE`
+- `PhpOffice\PhpWord\Style\TOC::TABLEADER_LINE`
+- `PhpOffice\PhpWord\Style\TOC::TABLEADER_NONE`
+- `PhpOffice\PhpWord\Style\Table::WIDTH_AUTO`
+- `PhpOffice\PhpWord\Style\Table::WIDTH_PERCENT`
+- `PhpOffice\PhpWord\Style\Table::WIDTH_TWIP`
+- `PhpOffice\PhpWord\PhpWord::DEFAULT_FONT_NAME`
+- `PhpOffice\PhpWord\PhpWord::DEFAULT_FONT_SIZE`
+- `PhpOffice\PhpWord\PhpWord::DEFAULT_FONT_COLOR`
+- `PhpOffice\PhpWord\PhpWord::DEFAULT_FONT_CONTENT_TYPE`
+-
+#### Dropped methods:
+
+- `PhpOffice\PhpWord\Ekement\AbstractContainer::createTextRun()`
+- `PhpOffice\PhpWord\Ekement\AbstractContainer::createFootnote()`
+- `PhpOffice\PhpWord\Ekement\Footnote::getReferenceId()`
+- `PhpOffice\PhpWord\Ekement\Footnote::setReferenceId()`
+- `PhpOffice\PhpWord\Ekement\Image::getIsWatermark()`
+- `PhpOffice\PhpWord\Ekement\Image::getIsMemImage()`
+- `PhpOffice\PhpWord\Ekement\Link::getTarget()`
+- `PhpOffice\PhpWord\Ekement\Link::getLinkSrc()`
+- `PhpOffice\PhpWord\Ekement\Link::getLinkName()`
+- `PhpOffice\PhpWord\Ekement\OLEObject::getObjectId()`
+- `PhpOffice\PhpWord\Ekement\OLEObject::setObjectId()`
+- `PhpOffice\PhpWord\Ekement\Section::getFootnotePropoperties()`
+- `PhpOffice\PhpWord\Ekement\Section::setSettings()`
+- `PhpOffice\PhpWord\Ekement\Section::getSettings()`
+- `PhpOffice\PhpWord\Ekement\Section::createHeader()`
+- `PhpOffice\PhpWord\Ekement\Section::createFooter()`
+- `PhpOffice\PhpWord\Ekement\Section::getFooter()`
+- `PhpOffice\PhpWord\Media::addSectionMediaElement()`
+- `PhpOffice\PhpWord\Media::addSectionLinkElement()`
+- `PhpOffice\PhpWord\Media::getSectionMediaElements()`
+- `PhpOffice\PhpWord\Media::countSectionMediaElements()`
+- `PhpOffice\PhpWord\Media::addHeaderMediaElement()`
+- `PhpOffice\PhpWord\Media::countHeaderMediaElements()`
+- `PhpOffice\PhpWord\Media::getHeaderMediaElements()`
+- `PhpOffice\PhpWord\Media::addFooterMediaElement()`
+- `PhpOffice\PhpWord\Media::countFooterMediaElements()`
+- `PhpOffice\PhpWord\Media::getFooterMediaElements()`
+- `PhpOffice\PhpWord\PhpWord::getProtection()`
+- `PhpOffice\PhpWord\PhpWord::loadTemplate()`
+- `PhpOffice\PhpWord\PhpWord::createSection()`
+- `PhpOffice\PhpWord\PhpWord::getDocumentProperties()`
+- `PhpOffice\PhpWord\PhpWord::setDocumentProperties()`
+- `PhpOffice\PhpWord\Reader\AbstractReader::getReadDataOnly()`
+- `PhpOffice\PhpWord\Settings::getCompatibility()`
+- `PhpOffice\PhpWord\Style\AbstractStyle::setArrayStyle()`
+- `PhpOffice\PhpWord\Style\Cell::getDefaultBorderColor()`
+- `PhpOffice\PhpWord\Style\Font::getBold()`
+- `PhpOffice\PhpWord\Style\Font::getItalic()`
+- `PhpOffice\PhpWord\Style\Font::getSuperScript()`
+- `PhpOffice\PhpWord\Style\Font::getSubScript()`
+- `PhpOffice\PhpWord\Style\Font::getStrikethrough()`
+- `PhpOffice\PhpWord\Style\Font::getParagraphStyle()`
+- `PhpOffice\PhpWord\Style\Frame::getAlign()`
+- `PhpOffice\PhpWord\Style\Frame::setAlign()`
+- `PhpOffice\PhpWord\Style\NumberingLevel::getAlign()`
+- `PhpOffice\PhpWord\Style\NumberingLevel::setAlign()`
+- `PhpOffice\PhpWord\Style\Paragraph::getAlign()`
+- `PhpOffice\PhpWord\Style\Paragraph::setAlign()`
+- `PhpOffice\PhpWord\Style\Paragraph::getWidowControl()`
+- `PhpOffice\PhpWord\Style\Paragraph::getKeepNext()`
+- `PhpOffice\PhpWord\Style\Paragraph::getKeepLines()`
+- `PhpOffice\PhpWord\Style\Paragraph::getPageBreakBefore()`
+- `PhpOffice\PhpWord\Style\Row::getTblHeader()`
+- `PhpOffice\PhpWord\Style\Row::isTblHeader()`
+- `PhpOffice\PhpWord\Style\Row::getCantSplit()`
+- `PhpOffice\PhpWord\Style\Row::getExactHeight()`
+- `PhpOffice\PhpWord\Style\Spacing::getRule()`
+- `PhpOffice\PhpWord\Style\Spacing::setRule()`
+- `PhpOffice\PhpWord\Style\Table::getAlign()`
+- `PhpOffice\PhpWord\Style\Table::setAlign()`
+- `PhpOffice\PhpWord\Writer\AbstractWriter::getUseDiskCaching()`
+- `PhpOffice\PhpWord\Writer\HTML::writeDocument()`
+
+### Bug fixes
+
+- Multiple PHP 8.1 fixes
+- `loadConfig` returns config that was actually applied
+- HTML Reader : Override inline style on HTML attribute for table
+- HTML Reader : Use `border` attribute for tables
+- HTML Reader : Style page-break-after in paragraph
+- HTML Reader : Heading in Text Run is not allowed
+
+### Miscellaneous
+
+- Drop support for PHP 7.0 and older
\ No newline at end of file
diff --git a/docs/changes/1.x/1.1.0.md b/docs/changes/1.x/1.1.0.md
new file mode 100644
index 0000000000..1fee96fb87
--- /dev/null
+++ b/docs/changes/1.x/1.1.0.md
@@ -0,0 +1,24 @@
+# [1.1.0](https://github.com/PHPOffice/PHPWord/tree/1.1.0) (2023-05-30)
+
+[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/1.0.0...1.1.0)
+
+### Enhancements
+
+- Introduce deleteRow() method for TemplateProcessor
+- HTML Reader: Add basic support for CSS Style Tag
+- Allow customizing macro syntax in TemplateProcessor
+- Add background color support for textboxes
+- Add softhyphen support to word reader
+- Add support table row height when importing HTML
+- Add support for fractional font sizes
+- Added image quality support, with the maximum quality as default
+- Support for reading nested tables
+
+### Bug fixes
+
+- DOCX reader: Read empty vmerge
+- Fixed setting width of Cell Style
+
+### Miscellaneous
+
+- `master` is the new default branch
\ No newline at end of file
diff --git a/docs/changes/1.x/1.2.0.md b/docs/changes/1.x/1.2.0.md
new file mode 100644
index 0000000000..7a4b09ea2d
--- /dev/null
+++ b/docs/changes/1.x/1.2.0.md
@@ -0,0 +1,68 @@
+# [1.2.0](https://github.com/PHPOffice/PHPWord/tree/1.2.0)
+
+[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/1.1.0...1.2.0)
+
+## Enhancements
+
+- Word2007 Reader/Writer : Added noWrap table cell property by [@kernusr](https://github.com/kernusr) in GH-2359
+- HTML Reader : Support for `font-variant: small-caps` by [@cambraca](https://github.com/cambraca) in GH-2117
+- Improved TextDirection for styling a cell by [@terryzwt](https://github.com/terryzwt) in GH-2429
+- Word2007 Reader : Added option to disable loading images by [@aelliott1485](https://github.com/aelliott1485) in GH-2450
+- HTML Writer : Added border-spacing to default styles for table by [@kernusr](https://github.com/kernusr) in GH-2451
+- Word2007 Reader : Support for table cell borders and margins by [@kernusr](https://github.com/kernusr) in GH-2454
+- PDF Writer : Add config for defining the default font by [@MikeMaldini](https://github.com/MikeMaldini) in [#2262](https://github.com/PHPOffice/PHPWord/pull/2262) & [#2468](https://github.com/PHPOffice/PHPWord/pull/2468)
+- Word2007 Reader : Added support for Comments by [@shaedrich](https://github.com/shaedrich) in [#2161](https://github.com/PHPOffice/PHPWord/pull/2161) & [#2469](https://github.com/PHPOffice/PHPWord/pull/2469)
+- Word2007 Reader/Writer: Permit book-fold printing by [@potofcoffee](https://github.com/potofcoffee) in [#2225](https://github.com/PHPOffice/PHPWord/pull/2225) & [#2470](https://github.com/PHPOffice/PHPWord/pull/2470)
+- Word2007 Writer : Add PageNumber to TOC by [@jet-desk](https://github.com/jet-desk) in [#1652](https://github.com/PHPOffice/PHPWord/pull/1652) & [#2471](https://github.com/PHPOffice/PHPWord/pull/2471)
+- Word2007 Reader/Writer + ODText Reader/Writer : Add Element Formula in by [@Progi1984](https://github.com/Progi1984) in [#2477](https://github.com/PHPOffice/PHPWord/pull/2477)
+- Add Support for Various Missing Features in HTML Writer by [@oleibman](https://github.com/oleibman) in [#2475](https://github.com/PHPOffice/PHPWord/pull/2475)
+ - Fixed addHTML (text-align:right in html is not handled correctly) in [#2467](https://github.com/PHPOffice/PHPWord/pull/2467)
+ - HTML Writer : Added ability to specify generic fallback font
+ - HTML Writer : Added ability to specify handling of whitespace
+ - HTML Writer : Added support for Table Border style, color, and size
+ - HTML Writer : Added support for empty paragraphs (Word writer permits, browsers generally suppress)
+ - HTML Writer : Paragraph style should support indentation, line-height, page-break-before
+ - HTML Writer : Removed margin-top/bottom when spacing is null in Paragraph style
+ - HTML Writer : Added default paragraph style to all paragraphs, as well as class Normal
+ - HTML Writer : Use css @page and page declarations for sections
+ - HTML Writer : Wrap sections in div, with page break before each (except first)
+ - PDF Writer : Added support for PageBreak
+ - PDF Writer : Added callback for modifying the HTML
+ - Added Support for Language, both for document overall and individual text elements
+- Template : Set a checkbox by [@nxtpge](https://github.com/nxtpge) in [#2509](https://github.com/PHPOffice/PHPWord/pull/2509)
+- ODText / RTF / Word2007 Writer : Add field FILENAME by [@milkyway-git](https://github.com/milkyway-git) in [#2510](https://github.com/PHPOffice/PHPWord/pull/2510)
+- ODText Reader : Improve Section Reader by [@oleibman](https://github.com/oleibman) in [#2507](https://github.com/PHPOffice/PHPWord/pull/2507)
+
+### Bug fixes
+
+- Fixed wrong mimetype for docx files by [@gamerlv](https://github.com/gamerlv) in GH-2416
+- Word2007 Reader : Read hyperlingks in headings by [@hannesdorn](https://github.com/hannesdorn) in GH-2433
+- PclZip : strtr using empty string by [@spl1nes](https://github.com/spl1nes) in GH-2432
+- Fixed PHP 8.2 deprecated about Allow access to an undefined property by [@DAdq26](https://github.com/DAdq26) in GH-2440
+- Template Processor : Fixed choose dimention for Float Value by [@gdevilbat](https://github.com/gdevilbat) in GH-2449
+- HTML Parser : Fix image parsing from url without extension by [@JokubasR](https://github.com/JokubasR) in GH-2459
+- Word2007 Reader : Fixed reading of Office365 DocX file by [@filippotoso](https://github.com/filippotoso) & [@lfglopes](https://github.com/lfglopes) in [#2506](https://github.com/PHPOffice/PHPWord/pull/2506)
+- Word2007 Reader : Check for null on $fontDefaultStyle by [@spatialfree](https://github.com/spatialfree) in [#2513](https://github.com/PHPOffice/PHPWord/pull/2513)
+
+### Miscellaneous
+
+- Added PHPStan by [@PowerKiKi](https://github.com/PowerKiKi) in GH-2405
+- Bump symfony/process from 4.4.44 to 5.4.26 by [@dependabot](https://github.com/dependabot) in GH-2431
+- Bump phpunit/phpunit from 9.6.8 to 9.6.10 by [@dependabot](https://github.com/dependabot) in GH-2430
+- Added Coveralls.io by [@Progi1984](https://github.com/Progi1984) in GH-2452
+- Added support for PHP 8.2 & PHP 8.3 by [@Progi1984](https://github.com/Progi1984) in GH-2453
+- Moved documention from ReadTheDocs to MkDocs & Github Pages by [@Progi1984](https://github.com/Progi1984) in GH-2465
+- Bump phpstan/phpstan-phpunit from 1.3.13 to 1.3.14 by [@dependabot](https://github.com/dependabot) in [#2457](https://github.com/PHPOffice/PHPWord/pull/2457)
+- Bump symfony/process from 5.4.26 to 5.4.28 by [@dependabot](https://github.com/dependabot) in [#2456](https://github.com/PHPOffice/PHPWord/pull/2456)
+- Bump phpunit/phpunit from 9.6.10 to 9.6.11 by [@dependabot](https://github.com/dependabot) in [#2455](https://github.com/PHPOffice/PHPWord/pull/2455)
+- Remove deprecated utf8_encode in PHP 8.2 by [@mhcwebdesign](https://github.com/mhcwebdesign) in [#2447](https://github.com/PHPOffice/PHPWord/pull/2447) & [#2472](https://github.com/PHPOffice/PHPWord/pull/2472)
+- Bump mpdf/mpdf from 8.1.6 to 8.2.0 by [@dependabot](https://github.com/dependabot) in [#2480](https://github.com/PHPOffice/PHPWord/pull/2480)
+- Bump phpunit/phpunit from 9.6.11 to 9.6.13 by [@dependabot](https://github.com/dependabot) in [#2481](https://github.com/PHPOffice/PHPWord/pull/2481)
+- Bump tecnickcom/tcpdf from 6.6.2 to 6.6.5 by [@dependabot](https://github.com/dependabot) in [#2482](https://github.com/PHPOffice/PHPWord/pull/2482)
+- Bump phpmd/phpmd from 2.13.0 to 2.14.1 by [@dependabot](https://github.com/dependabot) in [#2483](https://github.com/PHPOffice/PHPWord/pull/2483)
+- Bump phpstan/phpstan-phpunit from 1.3.14 to 1.3.15 by [@dependabot](https://github.com/dependabot) in [#2494](https://github.com/PHPOffice/PHPWord/pull/2494)
+
+
+### BC Breaks
+- Removed dependency `laminas/laminas-escaper`
+- *Unintended Break* TemplateProcessor Does Not Persist File After Destruct. [#2539](https://github.com/PHPOffice/PHPWord/issues/2539) To be fixed by [#2545](https://github.com/PHPOffice/PHPWord/pull/2545
diff --git a/docs/changes/1.x/1.3.0.md b/docs/changes/1.x/1.3.0.md
new file mode 100644
index 0000000000..4b2e1b25df
--- /dev/null
+++ b/docs/changes/1.x/1.3.0.md
@@ -0,0 +1,53 @@
+# [1.3.0](https://github.com/PHPOffice/PHPWord/tree/1.3.0)
+
+[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/1.2.0...1.3.0)
+
+## Enhancements
+
+- IOFactory : Added extractVariables method to extract variables from a document [@sibalonat](https://github.com/sibalonat) in [#2515](https://github.com/PHPOffice/PHPWord/pull/2515)
+- PDF Writer : Documented how to specify a PDF renderer, when working with the PDF writer, as well as the three available choices by [@settermjd](https://github.com/settermjd) in [#2642](https://github.com/PHPOffice/PHPWord/pull/2642)
+- Word2007 Reader: Support for Paragraph Border Style by [@damienfa](https://github.com/damienfa) in [#2651](https://github.com/PHPOffice/PHPWord/pull/2651)
+- Word2007 Writer: Support for field REF by [@crystoline](https://github.com/crystoline) in [#2652](https://github.com/PHPOffice/PHPWord/pull/2652)
+- Word2007 Reader : Support for FormFields by [@vincentKool](https://github.com/vincentKool) in [#2653](https://github.com/PHPOffice/PHPWord/pull/2653)
+- RTF Writer : Support for Table Border Style fixing [#345](https://github.com/PHPOffice/PHPWord/issues/345) by [@Progi1984](https://github.com/Progi1984) in [#2656](https://github.com/PHPOffice/PHPWord/pull/2656)
+- Word2007 Reader: Support the page break () by [@stanolacko](https://github.com/stanolacko) in [#2662](https://github.com/PHPOffice/PHPWord/pull/2662)
+- MsDoc Reader: Support for UTF-8 characters by [@Progi1984] fixing [#881](https://github.com/PHPOffice/PHPWord/issues/881), [#1454](https://github.com/PHPOffice/PHPWord/issues/1454), [#1817](https://github.com/PHPOffice/PHPWord/issues/1817), [#1927](https://github.com/PHPOffice/PHPWord/issues/1927), [#2383](https://github.com/PHPOffice/PHPWord/issues/2383), [#2565](https://github.com/PHPOffice/PHPWord/issues/2565) in [#2664](https://github.com/PHPOffice/PHPWord/pull/2664)
+- Word2007 Writer: Added support for multiples comment for the same text by [@rodrigoq](https://github.com/rodrigoq) fixing [#2109](https://github.com/PHPOffice/PHPWord/issues/2109) in [#2665](https://github.com/PHPOffice/PHPWord/pull/2665)
+
+### Bug fixes
+
+- MsDoc Reader : Correct Font Size Calculation by [@oleibman](https://github.com/oleibman) fixing [#2526](https://github.com/PHPOffice/PHPWord/issues/2526) in [#2531](https://github.com/PHPOffice/PHPWord/pull/2531)
+- Html Reader : Process Titles as Headings not Paragraphs [@0b10011](https://github.com/0b10011) and [@oleibman](https://github.com/oleibman) Issue [#1692](https://github.com/PHPOffice/PHPWord/issues/1692) PR [#2533](https://github.com/PHPOffice/PHPWord/pull/2533)
+- Generate Table Cell if Row Doesn't Have Any [@oleibman](https://github.com/oleibman) fixing [#2505](https://github.com/PHPOffice/PHPWord/issues/2505) in [#2516](https://github.com/PHPOffice/PHPWord/pull/2516)
+- TemplateProcessor Persist File After Destruct [@oleibman](https://github.com/oleibman) fixing [#2539](https://github.com/PHPOffice/PHPWord/issues/2539) in [#2545](https://github.com/PHPOffice/PHPWord/pull/2545)
+- TemplateProcessor Destructor Problem with Php7 [@oleibman](https://github.com/oleibman) fixing [#2548](https://github.com/PHPOffice/PHPWord/issues/2548) in [#2554](https://github.com/PHPOffice/PHPWord/pull/2554)
+- bug: TemplateProcessor fix multiline values [@gimler](https://github.com/gimler) fixing [#268](https://github.com/PHPOffice/PHPWord/issues/268), [#2323](https://github.com/PHPOffice/PHPWord/issues/2323) and [#2486](https://github.com/PHPOffice/PHPWord/issues/2486) in [#2522](https://github.com/PHPOffice/PHPWord/pull/2522)
+- 32-bit Problem in PasswordEncoder [@oleibman](https://github.com/oleibman) fixing [#2550](https://github.com/PHPOffice/PHPWord/issues/2550) in [#2551](https://github.com/PHPOffice/PHPWord/pull/2551)
+- Typo : Fix hardcoded macro chars in TemplateProcessor method [@glafarge](https://github.com/glafarge) in [#2618](https://github.com/PHPOffice/PHPWord/pull/2618)
+- XML Reader : Prevent fatal errors when opening corrupt files or "doc" files [@mmcev106](https://github.com/mmcev106) in [#2626](https://github.com/PHPOffice/PHPWord/pull/2626)
+- Documentation : Updated Comment element by [@laminga](https://github.com/laminga) in [#2650](https://github.com/PHPOffice/PHPWord/pull/2650)
+- HTML Reader : Read width & height attributes in points fixing [#2589](https://github.com/PHPOffice/PHPWord/issues/2589) by [@Progi1984](https://github.com/Progi1984) in [#2654](https://github.com/PHPOffice/PHPWord/pull/2654)
+- Template Processor : Fixed bad naming of variables fixing [#2586](https://github.com/PHPOffice/PHPWord/issues/2586) by [@Progi1984](https://github.com/Progi1984) in [#2655](https://github.com/PHPOffice/PHPWord/pull/2655)
+- Word2007 Writer : Fix first footnote appearing as separator [#2634](https://github.com/PHPOffice/PHPWord/issues/2634) by [@jacksleight](https://github.com/jacksleight) in [#2635](https://github.com/PHPOffice/PHPWord/pull/2635)
+- Template Processor : Fixed images with transparent backgrounds displaying a white background by [@ElwynVdb](https://github.com/ElwynVdb) in [#2638](https://github.com/PHPOffice/PHPWord/pull/2638)
+- HTML Writer : Fixed rowspan for tables by [@andomiell](https://github.com/andomiell) in [#2659](https://github.com/PHPOffice/PHPWord/pull/2659)
+- Word2007 Writer : Fixed StrikeThrough property by [@noec764](https://github.com/noec764) fixing [#1722](https://github.com/PHPOffice/PHPWord/issues/1722) & [#1693](https://github.com/PHPOffice/PHPWord/issues/1693) in [#2661](https://github.com/PHPOffice/PHPWord/pull/2661)
+- HTML Reader : Fixed link without href by [@asmundstavdahl](https://github.com/asmundstavdahl) fixing [#1562](https://github.com/PHPOffice/PHPWord/issues/1562) in [#2663](https://github.com/PHPOffice/PHPWord/pull/2663)
+
+### Miscellaneous
+
+- Bump dompdf/dompdf from 2.0.3 to 2.0.4 by [@dependabot](https://github.com/dependabot) in [#2530](https://github.com/PHPOffice/PHPWord/pull/2530)
+- Bump phpunit/phpunit from 9.6.13 to 9.6.14 by [@dependabot](https://github.com/dependabot) in [#2519](https://github.com/PHPOffice/PHPWord/pull/2519)
+- Bump mpdf/mpdf from 8.2.0 to 8.2.2 by [@dependabot](https://github.com/dependabot) in [#2518](https://github.com/PHPOffice/PHPWord/pull/2518)
+- Bump phpmd/phpmd from 2.14.1 to 2.15.0 by [@dependabot](https://github.com/dependabot) in [#2538](https://github.com/PHPOffice/PHPWord/pull/2538)
+- Bump phpunit/phpunit from 9.6.14 to 9.6.15 by [@dependabot](https://github.com/dependabot) in [#2537](https://github.com/PHPOffice/PHPWord/pull/2537)
+- Bump symfony/process from 5.4.28 to 5.4.34 by [@dependabot](https://github.com/dependabot) in [#2536](https://github.com/PHPOffice/PHPWord/pull/2536)
+- Allow rgb() when converting Html by [@oleibman](https://github.com/oleibman) fixing [#2508](https://github.com/PHPOffice/PHPWord/issues/2508) in [#2512](https://github.com/PHPOffice/PHPWord/pull/2512)
+- Improved Issue Template by [@Progi1984](https://github.com/Progi1984) in [#2609](https://github.com/PHPOffice/PHPWord/pull/2609)
+- Bump phpoffice/math from 0.1.0 to 0.2.0 by [@Progi1984](https://github.com/Progi1984) fixing [#2559](https://github.com/PHPOffice/PHPWord/issues/2559) in [#2645](https://github.com/PHPOffice/PHPWord/pull/2645)
+- Bump tecnickcom/tcpdf from 6.6.5 to 6.7.5 by [@dependabot](https://github.com/dependabot) in [#2646](https://github.com/PHPOffice/PHPWord/pull/2646)
+- Bump mpdf/mpdf from 8.2.2 to 8.2.4 by [@dependabot](https://github.com/dependabot) in [#2647](https://github.com/PHPOffice/PHPWord/pull/2647)
+- Bump phenx/php-svg-lib from 0.5.1 to 0.5.4 by [@dependabot](https://github.com/dependabot) in [#2649](https://github.com/PHPOffice/PHPWord/pull/2649)
+- Bump phpstan/phpstan-phpunit from 1.3.15 to 1.4.0 by [@dependabot](https://github.com/dependabot) in [#2648](https://github.com/PHPOffice/PHPWord/pull/2648)
+
+### BC Breaks
diff --git a/docs/changes/1.x/1.4.0.md b/docs/changes/1.x/1.4.0.md
new file mode 100644
index 0000000000..5daf85dbfd
--- /dev/null
+++ b/docs/changes/1.x/1.4.0.md
@@ -0,0 +1,56 @@
+# [1.4.0](https://github.com/PHPOffice/PHPWord/tree/1.4.0)
+
+[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/1.3.0...1.4.0)
+
+## Enhancements
+
+- Default Font: Allow specify Asisn font and Latin font separately
+
+- Writer ODText: Support for ListItemRun by [@Progi1984](https://github.com/Progi1984) fixing [#2159](https://github.com/PHPOffice/PHPWord/issues/2159), [#2620](https://github.com/PHPOffice/PHPWord/issues/2620) in [#2669](https://github.com/PHPOffice/PHPWord/pull/2669)
+- Writer HTML: Support for vAlign in Tables by [@SpraxDev](https://github.com/SpraxDev) in [#2675](https://github.com/PHPOffice/PHPWord/pull/2675)
+- Writer Word2007: Support for padding in Table Cell by [@Azamat8405](https://github.com/Azamat8405) in [#2697](https://github.com/PHPOffice/PHPWord/pull/2697)
+- Added support for PHP 8.4 by [@Progi1984](https://github.com/Progi1984) in [#2660](https://github.com/PHPOffice/PHPWord/pull/2660)
+- Autoload : Allow to use PHPWord without Composer fixing [#2543](https://github.com/PHPOffice/PHPWord/issues/2543), [#2552](https://github.com/PHPOffice/PHPWord/issues/2552), [#2716](https://github.com/PHPOffice/PHPWord/issues/2716), [#2717](https://github.com/PHPOffice/PHPWord/issues/2717) in [#2722](https://github.com/PHPOffice/PHPWord/pull/2722)
+- Add Default font color for Word by [@Collie-IT](https://github.com/Collie-IT) in [#2700](https://github.com/PHPOffice/PHPWord/pull/2700)
+- Writer HTML: Support Default font color by [@MichaelPFrey](https://github.com/MichaelPFrey) in [#2731](https://github.com/PHPOffice/PHPWord/pull/2731)
+- Writer ODText: Support Default font color by [@MichaelPFrey](https://github.com/MichaelPFrey) in [#2735](https://github.com/PHPOffice/PHPWord/pull/2735)
+- Add basic ruby text (phonetic guide) support for Word2007 and HTML Reader/Writer, RTF Writer, basic support for ODT writing by [@Deadpikle](https://github.com/Deadpikle) in [#2727](https://github.com/PHPOffice/PHPWord/pull/2727)
+- Reader HTML: Support font styles for h1/h6 by [@Progi1984](https://github.com/Progi1984) fixing [#2619](https://github.com/PHPOffice/PHPWord/issues/2619) in [#2737](https://github.com/PHPOffice/PHPWord/pull/2737)
+- Writer EPub3: Basic support by [@Sambit003](https://github.com/Sambit003) fixing [#55](https://github.com/PHPOffice/PHPWord/issues/55) in [#2724](https://github.com/PHPOffice/PHPWord/pull/2724)
+- Writer Word2007: Added support for background and border color transparency in Text Box element by [@chudy20007](https://github.com/Chudy20007) in [#2555](https://github.com/PHPOffice/PHPWord/pull/2555)
+- Writer/Reader Word2007: Added support for the firstLineChars for Indentation by [@liuzhilinux](https://github.com/liuzhilinux) & [@Progi1984](https://github.com/Progi1984) in [#2753](https://github.com/PHPOffice/PHPWord/pull/2753)
+
+### Bug fixes
+
+- Writer ODText: Support for images inside a textRun by [@Progi1984](https://github.com/Progi1984) fixing [#2240](https://github.com/PHPOffice/PHPWord/issues/2240) in [#2668](https://github.com/PHPOffice/PHPWord/pull/2668)
+- Allow vAlign and vMerge on Style\Cell to be set to null by [@SpraxDev](https://github.com/SpraxDev) fixing [#2673](https://github.com/PHPOffice/PHPWord/issues/2673) in [#2676](https://github.com/PHPOffice/PHPWord/pull/2676)
+- Reader HTML: Support for differents size units for table by [@Progi1984](https://github.com/Progi1984) fixing [#2384](https://github.com/PHPOffice/PHPWord/issues/2384), [#2701](https://github.com/PHPOffice/PHPWord/issues/2701) in [#2725](https://github.com/PHPOffice/PHPWord/pull/2725)
+- Reader Word2007: Respect paragraph indent units by [@tugmaks](https://github.com/tugmaks) & [@Progi1984](https://github.com/Progi1984) fixing [#507](https://github.com/PHPOffice/PHPWord/issues/507) in [#2726](https://github.com/PHPOffice/PHPWord/pull/2726)
+- Reader Word2007: Support Header elements within Title elements by [@SpraxDev](https://github.com/SpraxDev) fixing [#2616](https://github.com/PHPOffice/PHPWord/issues/2616), [#2426](https://github.com/PHPOffice/PHPWord/issues/2426) in [#2674](https://github.com/PHPOffice/PHPWord/pull/2674)
+- Reader HTML: Support for inherit value for property line-height by [@Progi1984](https://github.com/Progi1984) fixing [#2683](https://github.com/PHPOffice/PHPWord/issues/2683) in [#2733](https://github.com/PHPOffice/PHPWord/pull/2733)
+- Writer HTML: Fixed null string for Text Elements by [@armagedon007](https://github.com/armagedon007) and [@Progi1984](https://github.com/Progi1984) in [#2738](https://github.com/PHPOffice/PHPWord/pull/2738)
+- Template Processor: Fix 0 considered as empty string by [@cavasinf](https://github.com/cavasinf), [@SnipsMine](https://github.com/SnipsMine) and [@Progi1984](https://github.com/Progi1984) fixing [#2572](https://github.com/PHPOffice/PHPWord/issues/2572), [#2703](https://github.com/PHPOffice/PHPWord/issues/2703) in [#2748](https://github.com/PHPOffice/PHPWord/pull/2748)
+- Word2007 Writer : Corrected generating TOC to fix page number missing issues [@jgiacomello](https://github.com/jgiacomello) in [#2556](https://github.com/PHPOffice/PHPWord/pull/2556)
+- Enhanced error handling in encoding functions [@michalschroeder](https://github.com/michalschroeder) in [#2784](https://github.com/PHPOffice/PHPWord/pull/2784)
+
+### Miscellaneous
+
+- Bump dompdf/dompdf from 2.0.4 to 3.0.0 by [@dependabot](https://github.com/dependabot) fixing [#2621](https://github.com/PHPOffice/PHPWord/issues/2621) in [#2666](https://github.com/PHPOffice/PHPWord/pull/2666)
+- Add test case to make sure vMerge defaults to 'continue' by [@SpraxDev](https://github.com/SpraxDev) in [#2677](https://github.com/PHPOffice/PHPWord/pull/2677)
+- Adding the possibility to use iterate search and replace with setValues by [@moghwan](https://github.com/moghwan) in [#2632](https://github.com/PHPOffice/PHPWord/pull/2640)
+- Add test cases that test the ODTText and Word2007 reader using the corresponding writer, increasing test coverage by [@MichaelPFrey](https://github.com/MichaelPFrey) in [#2745](https://github.com/PHPOffice/PHPWord/pull/2745)
+- Updated TOCTest to use static HTML content instead of external resource [@michalschroeder](https://github.com/michalschroeder) in [#2784](https://github.com/PHPOffice/PHPWord/pull/2784)
+- Bump PHPOffice/math from 0.2.0 to 0.3.0 by [@eileenmcnaughton](https://github.com/eileenmcnaughton) in [#2785](https://github.com/PHPOffice/PHPWord/pull/2785)
+
+### Deprecations
+- Deprecate `PhpOffice\PhpWord\Style\Paragraph::getIndent()` : Use `PhpOffice\PhpWord\Style\Paragraph::getIndentLeft()`
+- Deprecate `PhpOffice\PhpWord\Style\Paragraph::setHanging()` : Use `PhpOffice\PhpWord\Style\Paragraph::setIndentHanging()`
+- Deprecate `PhpOffice\PhpWord\Style\Paragraph::setIndent()` : Use `PhpOffice\PhpWord\Style\Paragraph::setIndentLeft()`
+
+### BC Breaks
+
+### Notes
+- Writer ODText previously used to set 'style:use-window-font-color' to 'true', now it is set to 'false'. (see [#2735](https://github.com/PHPOffice/PHPWord/pull/2735))
+ The effect of this attribute is "implementation dependent" (if implemented at all).
+ Setting it to false allows setting a default font color and improves interoperabilt,
+ but may break certain specific use cases.
diff --git a/docs/changes/1.x/1.5.0.md b/docs/changes/1.x/1.5.0.md
new file mode 100644
index 0000000000..b96865bada
--- /dev/null
+++ b/docs/changes/1.x/1.5.0.md
@@ -0,0 +1,19 @@
+# [1.5.0](https://github.com/PHPOffice/PHPWord/tree/1.5.0) (WIP)
+
+[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/1.4.0...1.5.0)
+
+## Enhancements
+
+### Bug fixes
+
+- Set writeAttribute return type by [@radarhere](https://github.com/radarhere) fixing [#2204](https://github.com/PHPOffice/PHPWord/issues/2204) in [#2776](https://github.com/PHPOffice/PHPWord/pull/2776)
+
+### Miscellaneous
+
+- Update phpstan/phpstan requirement from ^0.12.88 || ^1.0.0 to ^0.12.88 || ^1.0.0 || ^2.0.0 by [@dependabot](https://github.com/dependabot) & [@Progi1984](https://github.com/Progi1984) in [#2736](https://github.com/PHPOffice/PHPWord/pull/2736)
+
+### Deprecations
+
+### BC Breaks
+
+### Notes
\ No newline at end of file
diff --git a/docs/conf.py b/docs/conf.py
deleted file mode 100644
index f5c38581f1..0000000000
--- a/docs/conf.py
+++ /dev/null
@@ -1,290 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# PhpWord documentation build configuration file, created by
-# sphinx-quickstart on Fri Mar 14 23:09:26 2014.
-#
-# This file is execfile()d with the current directory set to its containing dir.
-#
-# Note that not all possible configuration values are present in this
-# autogenerated file.
-#
-# All configuration values have a default; values that are commented out
-# serve to show the default.
-
-import sys, os
-
-# If extensions (or modules to document with autodoc) are in another directory,
-# add these directories to sys.path here. If the directory is relative to the
-# documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
-
-# -- General configuration -----------------------------------------------------
-
-# If your documentation needs a minimal Sphinx version, state it here.
-#needs_sphinx = '1.0'
-
-# Add any Sphinx extension module names here, as strings. They can be extensions
-# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = []
-
-# Add any paths that contain templates here, relative to this directory.
-templates_path = ['_templates']
-
-# The suffix of source filenames.
-source_suffix = '.rst'
-
-# The encoding of source files.
-#source_encoding = 'utf-8-sig'
-
-# The master toctree document.
-master_doc = 'index'
-
-# General information about the project.
-project = u'PhpWord'
-copyright = u'2014, Progi1984'
-
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-# The short X.Y version.
-version = '0.9.0'
-# The full version, including alpha/beta/rc tags.
-release = version
-
-# The language for content autogenerated by Sphinx. Refer to documentation
-# for a list of supported languages.
-#language = None
-
-# There are two options for replacing |today|: either, you set today to some
-# non-false value, then it is used:
-#today = ''
-# Else, today_fmt is used as the format for a strftime call.
-#today_fmt = '%B %d, %Y'
-
-# List of patterns, relative to source directory, that match files and
-# directories to ignore when looking for source files.
-exclude_patterns = ['_build']
-
-# The reST default role (used for this markup: `text`) to use for all documents.
-#default_role = None
-
-# If true, '()' will be appended to :func: etc. cross-reference text.
-#add_function_parentheses = True
-
-# If true, the current module name will be prepended to all description
-# unit titles (such as .. function::).
-#add_module_names = True
-
-# If true, sectionauthor and moduleauthor directives will be shown in the
-# output. They are ignored by default.
-#show_authors = False
-
-# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = 'sphinx'
-
-# A list of ignored prefixes for module index sorting.
-#modindex_common_prefix = []
-
-
-# -- Options for HTML output ---------------------------------------------------
-
-# The theme to use for HTML and HTML Help pages. See the documentation for
-# a list of builtin themes.
-html_theme = 'default'
-
-# Theme options are theme-specific and customize the look and feel of a theme
-# further. For a list of options available for each theme, see the
-# documentation.
-#html_theme_options = {}
-
-# Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
-
-# The name for this set of Sphinx documents. If None, it defaults to
-# " v documentation".
-#html_title = None
-
-# A shorter title for the navigation bar. Default is the same as html_title.
-#html_short_title = None
-
-# The name of an image file (relative to this directory) to place at the top
-# of the sidebar.
-#html_logo = None
-
-# The name of an image file (within the static path) to use as favicon of the
-# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
-# pixels large.
-#html_favicon = None
-
-# Add any paths that contain custom static files (such as style sheets) here,
-# relative to this directory. They are copied after the builtin static files,
-# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static']
-
-# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
-# using the given strftime format.
-#html_last_updated_fmt = '%b %d, %Y'
-
-# If true, SmartyPants will be used to convert quotes and dashes to
-# typographically correct entities.
-#html_use_smartypants = True
-
-# Custom sidebar templates, maps document names to template names.
-#html_sidebars = {}
-
-# Additional templates that should be rendered to pages, maps page names to
-# template names.
-#html_additional_pages = {}
-
-# If false, no module index is generated.
-#html_domain_indices = True
-
-# If false, no index is generated.
-#html_use_index = True
-
-# If true, the index is split into individual pages for each letter.
-#html_split_index = False
-
-# If true, links to the reST sources are added to the pages.
-#html_show_sourcelink = True
-
-# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
-#html_show_sphinx = True
-
-# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
-#html_show_copyright = True
-
-# If true, an OpenSearch description file will be output, and all pages will
-# contain a tag referring to it. The value of this option must be the
-# base URL from which the finished HTML is served.
-#html_use_opensearch = ''
-
-# This is the file name suffix for HTML files (e.g. ".xhtml").
-#html_file_suffix = None
-
-# Output file base name for HTML help builder.
-htmlhelp_basename = 'PhpWorddoc'
-
-
-# -- Options for LaTeX output --------------------------------------------------
-
-latex_elements = {
-# The paper size ('letterpaper' or 'a4paper').
-#'papersize': 'letterpaper',
-
-# The font size ('10pt', '11pt' or '12pt').
-#'pointsize': '10pt',
-
-# Additional stuff for the LaTeX preamble.
-#'preamble': '',
-}
-
-# Grouping the document tree into LaTeX files. List of tuples
-# (source start file, target name, title, author, documentclass [howto/manual]).
-latex_documents = [
- ('index', 'PhpWord.tex', u'PhpWord Documentation',
- u'The PhpWord Team', 'manual'),
-]
-
-# The name of an image file (relative to this directory) to place at the top of
-# the title page.
-#latex_logo = None
-
-# For "manual" documents, if this is true, then toplevel headings are parts,
-# not chapters.
-#latex_use_parts = False
-
-# If true, show page references after internal links.
-#latex_show_pagerefs = False
-
-# If true, show URL addresses after external links.
-#latex_show_urls = False
-
-# Documents to append as an appendix to all manuals.
-#latex_appendices = []
-
-# If false, no module index is generated.
-#latex_domain_indices = True
-
-
-# -- Options for manual page output --------------------------------------------
-
-# One entry per manual page. List of tuples
-# (source start file, name, description, authors, manual section).
-man_pages = [
- ('index', 'PhpWord', u'PhpWord Documentation',
- [u'The PhpWord Team'], 1)
-]
-
-# If true, show URL addresses after external links.
-#man_show_urls = False
-
-
-# -- Options for Texinfo output ------------------------------------------------
-
-# Grouping the document tree into Texinfo files. List of tuples
-# (source start file, target name, title, author,
-# dir menu entry, description, category)
-texinfo_documents = [
- ('index', 'PhpWord', u'PhpWord Documentation',
- u'The PhpWord Team', 'PhpWord', 'One line description of project.',
- 'Miscellaneous'),
-]
-
-# Documents to append as an appendix to all manuals.
-#texinfo_appendices = []
-
-# If false, no module index is generated.
-#texinfo_domain_indices = True
-
-# How to display URL addresses: 'footnote', 'no', or 'inline'.
-#texinfo_show_urls = 'footnote'
-
-# -- Options for Epub output ---------------------------------------------------
-
-# Bibliographic Dublin Core info.
-epub_title = u'PhpWord'
-epub_author = u'The PhpWord Team'
-epub_publisher = u'The PhpWord Team'
-epub_copyright = copyright
-
-# The language of the text. It defaults to the language option
-# or en if the language is not set.
-#epub_language = ''
-
-# The scheme of the identifier. Typical schemes are ISBN or URL.
-#epub_scheme = ''
-
-# The unique identifier of the text. This can be a ISBN number
-# or the project homepage.
-#epub_identifier = ''
-
-# A unique identification for the text.
-#epub_uid = ''
-
-# A tuple containing the cover image and cover page html template filenames.
-#epub_cover = ()
-
-# HTML files that should be inserted before the pages created by sphinx.
-# The format is a list of tuples containing the path and title.
-#epub_pre_files = []
-
-# HTML files shat should be inserted after the pages created by sphinx.
-# The format is a list of tuples containing the path and title.
-#epub_post_files = []
-
-# A list of files that should not be packed into the epub file.
-#epub_exclude_files = []
-
-# The depth of the table of contents in toc.ncx.
-#epub_tocdepth = 3
-
-# Allow duplicate toc entries.
-#epub_tocdup = True
-
-# Highlight PHP without starting addSection($sectionSettings);
-
-The ``$sectionSettings`` is an optional associative array that sets the
-section. Example:
-
-.. code-block:: php
-
- $sectionSettings = array(
- 'orientation' => 'landscape',
- 'marginTop' => 600,
- 'colsNum' => 2,
- );
-
-Section settings
-~~~~~~~~~~~~~~~~
-
-Below are the available settings for section:
-
-- ``orientation`` Page orientation, i.e. 'portrait' (default) or
- 'landscape'
-- ``marginTop`` Page margin top in twips
-- ``marginLeft`` Page margin left in twips
-- ``marginRight`` Page margin right in twips
-- ``marginBottom`` Page margin bottom in twips
-- ``borderTopSize`` Border top size in twips
-- ``borderTopColor`` Border top color
-- ``borderLeftSize`` Border left size in twips
-- ``borderLeftColor`` Border left color
-- ``borderRightSize`` Border right size in twips
-- ``borderRightColor`` Border right color
-- ``borderBottomSize`` Border bottom size in twips
-- ``borderBottomColor`` Border bottom color
-- ``headerHeight`` Spacing to top of header
-- ``footerHeight`` Spacing to bottom of footer
-- ``gutter`` Page gutter spacing
-- ``colsNum`` Number of columns
-- ``colsSpace`` Spacing between columns
-- ``breakType`` Section break type (nextPage, nextColumn, continuous,
- evenPage, oddPage)
-
-The following two settings are automatically set by the use of the
-``orientation`` setting. You can alter them but that's not recommended.
-
-- ``pageSizeW`` Page width in twips
-- ``pageSizeH`` Page height in twips
-
-Page number
-~~~~~~~~~~~
-
-You can change a section page number by using the ``pageNumberingStart``
-property of the section.
-
-.. code-block:: php
-
- // Method 1
- $section = $phpWord->addSection(array('pageNumberingStart' => 1));
-
- // Method 2
- $section = $phpWord->addSection();
- $section->getSettings()->setPageNumberingStart(1);
-
-Multicolumn
-~~~~~~~~~~~
-
-You can change a section layout to multicolumn (like in a newspaper) by
-using the ``breakType`` and ``colsNum`` property of the section.
-
-.. code-block:: php
-
- // Method 1
- $section = $phpWord->addSection(array('breakType' => 'continuous', 'colsNum' => 2));
-
- // Method 2
- $section = $phpWord->addSection();
- $section->getSettings()->setBreakType('continuous');
- $section->getSettings()->setColsNum(2);
-
-
-### Line numbering
-
-You can apply line numbering to a section by using the ``lineNumbering``
-property of the section.
-
-.. code-block:: php
-
- // Method 1
- $section = $phpWord->addSection(array('lineNumbering' => array()));
-
- // Method 2
- $section = $phpWord->addSection();
- $section->getSettings()->setLineNumbering(array());
-
-Below are the properties of the line numbering style.
-
-- ``start`` Line numbering starting value
-- ``increment`` Line number increments
-- ``distance`` Distance between text and line numbering in twip
-- ``restart`` Line numbering restart setting continuous|newPage|newSection
-
-Headers
--------
-
-Each section can have its own header reference. To create a header use
-the ``addHeader`` method:
-
-.. code-block:: php
-
- $header = $section->addHeader();
-
-Be sure to save the result in a local object. You can use all elements
-that are available for the footer. See "Footer" section for detail.
-Additionally, only inside of the header reference you can add watermarks
-or background pictures. See "Watermarks" section.
-
-Footers
--------
-
-Each section can have its own footer reference. To create a footer, use
-the ``addFooter`` method:
-
-.. code-block:: php
-
- $footer = $section->addFooter();
-
-Be sure to save the result in a local object to add elements to a
-footer. You can add the following elements to footers:
-
-- Texts ``addText`` and ``createTextrun``
-- Text breaks
-- Images
-- Tables
-- Preserve text
-
-See the "Elements" section for the detail of each elements.
-
-Other containers
-----------------
-
-Textruns, table cells, and footnotes are elements that can also act as
-containers. See the corresponding "Elements" section for the detail of
-each elements.
diff --git a/docs/credits.md b/docs/credits.md
new file mode 100644
index 0000000000..66540be002
--- /dev/null
+++ b/docs/credits.md
@@ -0,0 +1,40 @@
+# Credits
+
+Images from chart page come from the [LibreOffice Core](https://github.com/LibreOffice/core/tree/master/icon-themes/galaxy/chart2/res).
+
+Some definitions come from the [Office Open XML](http://officeopenxml.com).
+
+## References
+
+### OpenXML
+
+Known as "ISO/IEC 29500, Third edition, 2012-09-01"
+
+ISO :
+
+- [Part 1: Fundamentals and Markup Language Reference](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061750_ISO_IEC_29500-1_2012.zip)
+- [Part 2: Open Packaging Conventions](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061796_ISO_IEC_29500-2_2012.zip)
+- [Part 3: Markup Compatibility and Extensibility](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061797_ISO_IEC_29500-3_2012.zip)
+- [Part 4: Transitional Migration Features](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061798_ISO_IEC_29500-4_2012.zip)
+
+MSDN :
+
+- [Open XML SDK 2.5 with Validator](http://www.microsoft.com/en-gb/download/details.aspx?id=30425)
+- [DocumentFormat.OpenXml.Wordprocessing Namespace on MSDN](http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing%28v=office.14%29.aspx)
+
+Library of Congress :
+
+- [OOXML Format Family -- ISO/IEC 29500 and ECMA 376](https://www.loc.gov/preservation/digital/formats/fdd/fdd000395.shtml)
+- [Schemas in W3C XML Schema language and in RELAX NG for the Strict variant of PPTX, etc.](http://standards.iso.org/ittf/PubliclyAvailableStandards/c071691_ISO_IEC_29500-1_2016_Electronic_inserts.zip)
+
+
+### OpenDocument
+
+- [Oasis OpenDocument Standard Version 1.2](http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os.html)
+- [Schema Central Open Document 1.1](http://www.datypic.com/sc/odf/ss.html)
+
+### Rich Text Format
+
+- [Rich Text Format (RTF) Specification, version 1.9.1](http://www.microsoft.com/en-us/download/details.aspx?id=10725)
+
+### Word 97
\ No newline at end of file
diff --git a/docs/credits.rst b/docs/credits.rst
deleted file mode 100644
index 9b6e46c68c..0000000000
--- a/docs/credits.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-.. _credits:
-
-Credits
-=======
diff --git a/docs/elements.rst b/docs/elements.rst
deleted file mode 100644
index eb70f9ad9b..0000000000
--- a/docs/elements.rst
+++ /dev/null
@@ -1,512 +0,0 @@
-.. _elements:
-
-Elements
-========
-
-Below are the matrix of element availability in each container. The
-column shows the containers while the rows lists the elements.
-
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| Num | Element | Section | Header | Footer | Cell | Text Run | Footnote |
-+=======+=================+===========+==========+==========+=========+============+============+
-| 1 | Text | v | v | v | v | v | v |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 2 | Text Run | v | v | v | v | - | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 3 | Link | v | v | v | v | v | v |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 4 | Title | v | ? | ? | ? | ? | ? |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 5 | Preserve Text | ? | v | v | v\* | - | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 6 | Text Break | v | v | v | v | v | v |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 7 | Page Break | v | - | - | - | - | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 8 | List | v | v | v | v | - | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 9 | Table | v | v | v | v | - | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 10 | Image | v | v | v | v | v | v |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 11 | Watermark | - | v | - | - | - | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 12 | Object | v | v | v | v | v | v |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 13 | TOC | v | - | - | - | - | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 14 | Footnote | v | - | - | v\*\* | v\*\* | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 15 | Endnote | v | - | - | v\*\* | v\*\* | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 16 | CheckBox | v | v | v | v | - | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 17 | TextBox | v | v | v | v | - | - |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 18 | Field | v | v | v | v | v | v |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-| 19 | Line | v | v | v | v | v | v |
-+-------+-----------------+-----------+----------+----------+---------+------------+------------+
-
-Legend:
-
-- ``v`` Available
-- ``v*`` Available only when inside header/footer
-- ``v**`` Available only when inside section
-- ``-`` Not available
-- ``?`` Should be available
-
-Texts
------
-
-Text can be added by using ``addText`` and ``addTextRun`` method.
-``addText`` is used for creating simple paragraphs that only contain
-texts with the same style. ``addTextRun`` is used for creating complex
-paragraphs that contain text with different style (some bold, other
-italics, etc) or other elements, e.g. images or links. The syntaxes are
-as follow:
-
-.. code-block:: php
-
- $section->addText($text, [$fontStyle], [$paragraphStyle]);
- $textrun = $section->addTextRun([$paragraphStyle]);
-
-Text styles
-~~~~~~~~~~~
-
-You can use the ``$fontStyle`` and ``$paragraphStyle`` variable to
-define text formatting. There are 2 options to style the inserted text
-elements, i.e. inline style by using array or defined style by adding
-style definition.
-
-Inline style examples:
-
-.. code-block:: php
-
- $fontStyle = array('name' => 'Times New Roman', 'size' => 9);
- $paragraphStyle = array('align' => 'both');
- $section->addText('I am simple paragraph', $fontStyle, $paragraphStyle);
-
- $textrun = $section->addTextRun();
- $textrun->addText('I am bold', array('bold' => true));
- $textrun->addText('I am italic', array('italic' => true));
- $textrun->addText('I am colored', array('color' => 'AACC00'));
-
-Defined style examples:
-
-.. code-block:: php
-
- $fontStyle = array('color' => '006699', 'size' => 18, 'bold' => true);
- $phpWord->addFontStyle('fStyle', $fontStyle);
- $text = $section->addText('Hello world!', 'fStyle');
-
- $paragraphStyle = array('align' => 'center');
- $phpWord->addParagraphStyle('pStyle', $paragraphStyle);
- $text = $section->addText('Hello world!', 'pStyle');
-
-Font style
-^^^^^^^^^^
-
-Available font styles:
-
-- ``name`` Font name, e.g. *Arial*
-- ``size`` Font size, e.g. *20*, *22*,
-- ``hint`` Font content type, *default*, *eastAsia*, or *cs*
-- ``bold`` Bold, *true* or *false*
-- ``italic`` Italic, *true* or *false*
-- ``superScript`` Superscript, *true* or *false*
-- ``subScript`` Subscript, *true* or *false*
-- ``underline`` Underline, *dash*, *dotted*, etc.
-- ``strikethrough`` Strikethrough, *true* or *false*
-- ``doubleStrikethrough`` Double strikethrough, *true* or *false*
-- ``color`` Font color, e.g. *FF0000*
-- ``fgColor`` Font highlight color, e.g. *yellow*, *green*, *blue*
-- ``bgColor`` Font background color, e.g. *FF0000*
-- ``smallCaps`` Small caps, *true* or *false*
-- ``allCaps`` All caps, *true* or *false*
-
-Paragraph style
-^^^^^^^^^^^^^^^
-
-Available paragraph styles:
-
-- ``align`` Paragraph alignment, *left*, *right* or *center*
-- ``spaceBefore`` Space before paragraph
-- ``spaceAfter`` Space after paragraph
-- ``indent`` Indent by how much
-- ``hanging`` Hanging by how much
-- ``basedOn`` Parent style
-- ``next`` Style for next paragraph
-- ``widowControl`` Allow first/last line to display on a separate page,
- *true* or *false*
-- ``keepNext`` Keep paragraph with next paragraph, *true* or *false*
-- ``keepLines`` Keep all lines on one page, *true* or *false*
-- ``pageBreakBefore`` Start paragraph on next page, *true* or *false*
-- ``lineHeight`` text line height, e.g. *1.0*, *1.5*, ect...
-- ``tabs`` Set of custom tab stops
-
-Titles
-~~~~~~
-
-If you want to structure your document or build table of contents, you
-need titles or headings. To add a title to the document, use the
-``addTitleStyle`` and ``addTitle`` method.
-
-.. code-block:: php
-
- $phpWord->addTitleStyle($depth, [$fontStyle], [$paragraphStyle]);
- $section->addTitle($text, [$depth]);
-
-Its necessary to add a title style to your document because otherwise
-the title won't be detected as a real title.
-
-Links
-~~~~~
-
-You can add Hyperlinks to the document by using the function addLink:
-
-.. code-block:: php
-
- $section->addLink($linkSrc, [$linkName], [$fontStyle], [$paragraphStyle]);
-
-- ``$linkSrc`` The URL of the link.
-- ``$linkName`` Placeholder of the URL that appears in the document.
-- ``$fontStyle`` See "Font style" section.
-- ``$paragraphStyle`` See "Paragraph style" section.
-
-Preserve texts
-~~~~~~~~~~~~~~
-
-The ``addPreserveText`` method is used to add a page number or page
-count to headers or footers.
-
-.. code-block:: php
-
- $footer->addPreserveText('Page {PAGE} of {NUMPAGES}.');
-
-Breaks
-------
-
-Text breaks
-~~~~~~~~~~~
-
-Text breaks are empty new lines. To add text breaks, use the following
-syntax. All paramaters are optional.
-
-.. code-block:: php
-
- $section->addTextBreak([$breakCount], [$fontStyle], [$paragraphStyle]);
-
-- ``$breakCount`` How many lines
-- ``$fontStyle`` See "Font style" section.
-- ``$paragraphStyle`` See "Paragraph style" section.
-
-Page breaks
-~~~~~~~~~~~
-
-There are two ways to insert a page breaks, using the ``addPageBreak``
-method or using the ``pageBreakBefore`` style of paragraph.
-
-:: code-block:: php
-
- \\$section->addPageBreak();
-
-Lists
------
-
-To add a list item use the function ``addListItem``.
-
-Basic usage:
-
-.. code-block:: php
-
- $section->addListItem($text, [$depth], [$fontStyle], [$listStyle], [$paragraphStyle]);
-
-Parameters:
-
-- ``$text`` Text that appears in the document.
-- ``$depth`` Depth of list item.
-- ``$fontStyle`` See "Font style" section.
-- ``$listStyle`` List style of the current element TYPE\_NUMBER,
- TYPE\_ALPHANUM, TYPE\_BULLET\_FILLED, etc. See list of constants in
- PHPWord\_Style\_ListItem.
-- ``$paragraphStyle`` See "Paragraph style" section.
-
-Advanced usage:
-
-You can also create your own numbering style by changing the
-``$listStyle`` parameter with the name of your numbering style.
-
-.. code-block:: php
-
- $phpWord->addNumberingStyle(
- 'multilevel',
- array('type' => 'multilevel', 'levels' => array(
- array('format' => 'decimal', 'text' => '%1.', 'left' => 360, 'hanging' => 360, 'tabPos' => 360),
- array('format' => 'upperLetter', 'text' => '%2.', 'left' => 720, 'hanging' => 360, 'tabPos' => 720),
- )
- )
- );
- $section->addListItem('List Item I', 0, null, 'multilevel');
- $section->addListItem('List Item I.a', 1, null, 'multilevel');
- $section->addListItem('List Item I.b', 1, null, 'multilevel');
- $section->addListItem('List Item II', 0, null, 'multilevel');
-
-Level styles:
-
-- ``start`` Starting value
-- ``format`` Numbering format
- bullet\|decimal\|upperRoman\|lowerRoman\|upperLetter\|lowerLetter
-- ``restart`` Restart numbering level symbol
-- ``suffix`` Content between numbering symbol and paragraph text
- tab\|space\|nothing
-- ``text`` Numbering level text e.g. %1 for nonbullet or bullet
- character
-- ``align`` Numbering symbol align left\|center\|right\|both
-- ``left`` See paragraph style
-- ``hanging`` See paragraph style
-- ``tabPos`` See paragraph style
-- ``font`` Font name
-- ``hint`` See font style
-
-Tables
-------
-
-To add tables, rows, and cells, use the ``addTable``, ``addRow``, and
-``addCell`` methods:
-
-.. code-block:: php
-
- $table = $section->addTable([$tableStyle]);
- $table->addRow([$height], [$rowStyle]);
- $cell = $table->addCell($width, [$cellStyle]);
-
-Table style can be defined with ``addTableStyle``:
-
-.. code-block:: php
-
- $tableStyle = array(
- 'borderColor' => '006699',
- 'borderSize' => 6,
- 'cellMargin' => 50
- );
- $firstRowStyle = array('bgColor' => '66BBFF');
- $phpWord->addTableStyle('myTable', $tableStyle, $firstRowStyle);
- $table = $section->addTable('myTable');
-
-Table, row, and cell styles
-~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-Table styles:
-
-- ``width`` Table width in percent
-- ``bgColor`` Background color, e.g. '9966CC'
-- ``border(Top|Right|Bottom|Left)Size`` Border size in twips
-- ``border(Top|Right|Bottom|Left)Color`` Border color, e.g. '9966CC'
-- ``cellMargin(Top|Right|Bottom|Left)`` Cell margin in twips
-
-Row styles:
-
-- ``tblHeader`` Repeat table row on every new page, *true* or *false*
-- ``cantSplit`` Table row cannot break across pages, *true* or *false*
-- ``exactHeight`` Row height is exact or at least
-
-Cell styles:
-
-- ``width`` Cell width in twips
-- ``valign`` Vertical alignment, *top*, *center*, *both*, *bottom*
-- ``textDirection`` Direction of text
-- ``bgColor`` Background color, e.g. '9966CC'
-- ``border(Top|Right|Bottom|Left)Size`` Border size in twips
-- ``border(Top|Right|Bottom|Left)Color`` Border color, e.g. '9966CC'
-- ``gridSpan`` Number of columns spanned
-- ``vMerge`` *restart* or *continue*
-
-Cell span
-~~~~~~~~~
-
-You can span a cell on multiple columns by using ``gridSpan`` or
-multiple rows by using ``vMerge``.
-
-.. code-block:: php
-
- $cell = $table->addCell(200);
- $cell->getStyle()->setGridSpan(5);
-
-See ``Sample_09_Tables.php`` for more code sample.
-
-Images
-------
-
-To add an image, use the ``addImage`` method to sections, headers,
-footers, textruns, or table cells.
-
-.. code-block:: php
-
- $section->addImage($src, [$style]);
-
-- source String path to a local image or URL of a remote image
-- styles Array fo styles for the image. See below.
-
-Examples:
-
-.. code-block:: php
-
- $section = $phpWord->addSection();
- $section->addImage(
- 'mars.jpg',
- array(
- 'width' => 100,
- 'height' => 100,
- 'marginTop' => -1,
- 'marginLeft' => -1,
- 'wrappingStyle' => 'behind'
- )
- );
- $footer = $section->addFooter();
- $footer->addImage('http://example.com/image.php');
- $textrun = $section->addTextRun();
- $textrun->addImage('http://php.net/logo.jpg');
-
-Image styles
-~~~~~~~~~~~~
-
-Available image styles:
-
-- ``width`` Width in pixels
-- ``height`` Height in pixels
-- ``align`` Image alignment, *left*, *right*, or *center*
-- ``marginTop`` Top margin in inches, can be negative
-- ``marginLeft`` Left margin in inches, can be negative
-- ``wrappingStyle`` Wrapping style, *inline*, *square*, *tight*,
- *behind*, or *infront*
-
-Watermarks
-~~~~~~~~~~
-
-To add a watermark (or page background image), your section needs a
-header reference. After creating a header, you can use the
-``addWatermark`` method to add a watermark.
-
-.. code-block:: php
-
- $section = $phpWord->addSection();
- $header = $section->addHeader();
- $header->addWatermark('resources/_earth.jpg', array('marginTop' => 200, 'marginLeft' => 55));
-
-Objects
--------
-
-You can add OLE embeddings, such as Excel spreadsheets or PowerPoint
-presentations to the document by using ``addObject`` method.
-
-.. code-block:: php
-
- $section->addObject($src, [$style]);
-
-Table of contents
------------------
-
-To add a table of contents (TOC), you can use the ``addTOC`` method.
-Your TOC can only be generated if you have add at least one title (See
-"Titles").
-
-.. code-block:: php
-
- $section->addTOC([$fontStyle], [$tocStyle], [$minDepth], [$maxDepth]);
-
-- ``$fontStyle``: See font style section
-- ``$tocStyle``: See available options below
-- ``$minDepth``: Minimum depth of header to be shown. Default 1
-- ``$maxDepth``: Maximum depth of header to be shown. Default 9
-
-Options for ``$tocStyle``:
-
-- ``tabLeader`` Fill type between the title text and the page number.
- Use the defined constants in PHPWord\_Style\_TOC.
-- ``tabPos`` The position of the tab where the page number appears in
- twips.
-- ``indent`` The indent factor of the titles in twips.
-
-Footnotes & endnotes
---------------------
-
-You can create footnotes with ``addFootnote`` and endnotes with
-``addEndnote`` in texts or textruns, but it's recommended to use textrun
-to have better layout. You can use ``addText``, ``addLink``,
-``addTextBreak``, ``addImage``, ``addObject`` on footnotes and endnotes.
-
-On textrun:
-
-.. code-block:: php
-
- $textrun = $section->addTextRun();
- $textrun->addText('Lead text.');
- $footnote = $textrun->addFootnote();
- $footnote->addText('Footnote text can have ');
- $footnote->addLink('http://test.com', 'links');
- $footnote->addText('.');
- $footnote->addTextBreak();
- $footnote->addText('And text break.');
- $textrun->addText('Trailing text.');
- $endnote = $textrun->addEndnote();
- $endnote->addText('Endnote put at the end');
-
-On text:
-
-.. code-block:: php
-
- $section->addText('Lead text.');
- $footnote = $section->addFootnote();
- $footnote->addText('Footnote text.');
-
-The footnote reference number will be displayed with decimal number
-starting from 1. This number use ``FooterReference`` style which you can
-redefine by ``addFontStyle`` method. Default value for this style is
-``array('superScript' => true)``;
-
-Checkboxes
-----------
-
-Checkbox elements can be added to sections or table cells by using
-``addCheckBox``.
-
-.. code-block:: php
-
- $section->addCheckBox($name, $text, [$fontStyle], [$paragraphStyle])
-
-- ``$name`` Name of the check box.
-- ``$text`` Text following the check box
-- ``$fontStyle`` See "Font style" section.
-- ``$paragraphStyle`` See "Paragraph style" section.
-
-Textboxes
----------
-
-To be completed
-
-Fields
-------
-
-To be completed
-
-Line
-------
-
-Line elements can be added to sections by using ``addLine``.
-
-.. code-block:: php
-
- $linestyle = array('weight' => 1, 'width' => 100, 'height' => 0, 'color' => 635552);
- $section->addLine($lineStyle)
-
-Available line style attributes:
-
-- ``weight`` Line width in twips
-- ``color`` Defines the color of stroke
-- ``dash`` Line types: dash, rounddot, squaredot, dashdot, longdash, longdashdot, longdashdotdot
-- ``beginArrow`` Start type of arrow: block, open, classic, diamond, oval
-- ``endArrow`` End type of arrow: block, open, classic, diamond, ovel
-- ``width`` Line-object width in pt
-- ``height`` Line-object height in pt
-- ``flip`` Flip the line element: true, false
diff --git a/docs/faq.md b/docs/faq.md
new file mode 100644
index 0000000000..81341fbc18
--- /dev/null
+++ b/docs/faq.md
@@ -0,0 +1,5 @@
+# Frequently asked questions
+
+## How contribute to PHPWord?
+- Improve the documentation
+
diff --git a/docs/faq.rst b/docs/faq.rst
deleted file mode 100644
index ec158356e7..0000000000
--- a/docs/faq.rst
+++ /dev/null
@@ -1,20 +0,0 @@
-.. _faq:
-
-Frequently asked questions
-==========================
-
-Is this the same with PHPWord that I found in CodePlex?
--------------------------------------------------------
-
-No. This one is much better with tons of new features that you can’t
-find in PHPWord 0.6.3. The development in CodePlex is halted and
-switched to GitHub to allow more participation from the crowd. The more
-the merrier, right?
-
-I’ve been running PHPWord from CodePlex flawlessly, but I can’t use the latest PHPWord from GitHub. Why?
---------------------------------------------------------------------------------------------------------
-
-PHPWord requires PHP 5.3+ since 0.8, while PHPWord 0.6.3 from CodePlex
-can run with PHP 5.2. There’s a lot of new features that we can get from
-PHP 5.3 and it’s been around since 2009! You should upgrade your PHP
-version to use PHPWord 0.8+.
diff --git a/docs/general.rst b/docs/general.rst
deleted file mode 100644
index f08e29badd..0000000000
--- a/docs/general.rst
+++ /dev/null
@@ -1,146 +0,0 @@
-.. _general:
-
-General usage
-=============
-
-Basic example
--------------
-
-The following is a basic example of the PHPWord library. More examples
-are provided in the `samples
-folder `__.
-
-.. code-block:: php
-
- require_once 'src/PhpWord/Autoloader.php';
- \PhpOffice\PhpWord\Autoloader::register();
-
- $phpWord = new \PhpOffice\PhpWord\PhpWord();
-
- // Every element you want to append to the word document is placed in a section.
- // To create a basic section:
- $section = $phpWord->addSection();
-
- // After creating a section, you can append elements:
- $section->addText('Hello world!');
-
- // You can directly style your text by giving the addText function an array:
- $section->addText('Hello world! I am formatted.',
- array('name'=>'Tahoma', 'size'=>16, 'bold'=>true));
-
- // If you often need the same style again you can create a user defined style
- // to the word document and give the addText function the name of the style:
- $phpWord->addFontStyle('myOwnStyle',
- array('name'=>'Verdana', 'size'=>14, 'color'=>'1B2232'));
- $section->addText('Hello world! I am formatted by a user defined style',
- 'myOwnStyle');
-
- // You can also put the appended element to local object like this:
- $fontStyle = new \PhpOffice\PhpWord\Style\Font();
- $fontStyle->setBold(true);
- $fontStyle->setName('Verdana');
- $fontStyle->setSize(22);
- $myTextElement = $section->addText('Hello World!');
- $myTextElement->setFontStyle($fontStyle);
-
- // Finally, write the document:
- $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
- $objWriter->save('helloWorld.docx');
-
- $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'ODText');
- $objWriter->save('helloWorld.odt');
-
- $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'RTF');
- $objWriter->save('helloWorld.rtf');
-
-Settings
---------
-
-The ``PhpOffice\PhpWord\Settings`` class provides some options that will
-affect the behavior of PHPWord. Below are the options.
-
-XML Writer compatibility
-~~~~~~~~~~~~~~~~~~~~~~~~
-
-This option sets
-`XMLWriter::setIndent `__
-and
-`XMLWriter::setIndentString `__.
-The default value of this option is ``true`` (compatible), which is
-`required for
-OpenOffice `__ to
-render OOXML document correctly. You can set this option to ``false``
-during development to make the resulting XML file easier to read.
-
-.. code-block:: php
-
- \PhpOffice\PhpWord\Settings::setCompatibility(false);
-
-Zip class
-~~~~~~~~~
-
-By default, PHPWord uses PHP
-`ZipArchive `__ to read or write
-ZIP compressed archive and the files inside them. If you can't have
-ZipArchive installed on your server, you can use pure PHP library
-alternative, `PCLZip `__, which
-included with PHPWord.
-
-.. code-block:: php
-
- \PhpOffice\PhpWord\Settings::setZipClass(\PhpOffice\PhpWord\Settings::PCLZIP);
-
-Default font
-------------
-
-By default, every text appears in Arial 10 point. You can alter the
-default font by using the following two functions:
-
-.. code-block:: php
-
- $phpWord->setDefaultFontName('Times New Roman');
- $phpWord->setDefaultFontSize(12);
-
-Document properties
--------------------
-
-You can set the document properties such as title, creator, and company
-name. Use the following functions:
-
-.. code-block:: php
-
- $properties = $phpWord->getDocumentProperties();
- $properties->setCreator('My name');
- $properties->setCompany('My factory');
- $properties->setTitle('My title');
- $properties->setDescription('My description');
- $properties->setCategory('My category');
- $properties->setLastModifiedBy('My name');
- $properties->setCreated(mktime(0, 0, 0, 3, 12, 2014));
- $properties->setModified(mktime(0, 0, 0, 3, 14, 2014));
- $properties->setSubject('My subject');
- $properties->setKeywords('my, key, word');
-
-Measurement units
------------------
-
-The base length unit in Open Office XML is twip. Twip means "TWentieth
-of an Inch Point", i.e. 1 twip = 1/1440 inch.
-
-You can use PHPWord helper functions to convert inches, centimeters, or
-points to twips.
-
-.. code-block:: php
-
- // Paragraph with 6 points space after
- $phpWord->addParagraphStyle('My Style', array(
- 'spaceAfter' => \PhpOffice\PhpWord\Shared\Font::pointSizeToTwips(6))
- );
-
- $section = $phpWord->addSection();
- $sectionStyle = $section->getSettings();
- // half inch left margin
- $sectionStyle->setMarginLeft(\PhpOffice\PhpWord\Shared\Font::inchSizeToTwips(.5));
- // 2 cm right margin
- $sectionStyle->setMarginRight(\PhpOffice\PhpWord\Shared\Font::centimeterSizeToTwips(2));
-
diff --git a/docs/howto.md b/docs/howto.md
new file mode 100644
index 0000000000..fd4c860682
--- /dev/null
+++ b/docs/howto.md
@@ -0,0 +1,101 @@
+# How to
+
+## Create float left image
+
+Use absolute positioning relative to margin horizontally and to line vertically.
+
+``` php
+ 40,
+ 'height' => 40,
+ 'wrappingStyle' => 'square',
+ 'positioning' => 'absolute',
+ 'posHorizontalRel' => 'margin',
+ 'posVerticalRel' => 'line',
+);
+$textrun->addImage(__DIR__ . '/resources/_earth.jpg', $imageStyle);
+```
+
+## Download the produced file automatically
+
+Use ``php://output`` as the filename.
+
+``` php
+addSection();
+$section->addText('Hello World!');
+$file = 'HelloWorld.docx';
+header("Content-Description: File Transfer");
+header('Content-Disposition: attachment; filename="' . $file . '"');
+header('Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document');
+header('Content-Transfer-Encoding: binary');
+header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
+header('Expires: 0');
+$xmlWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
+$xmlWriter->save("php://output");
+```
+
+## Create numbered headings
+
+Define a numbering style and title styles, and match the two styles (with ``pStyle`` and ``numStyle``) like below.
+
+``` php
+addNumberingStyle(
+ 'hNum',
+ array('type' => 'multilevel', 'levels' => array(
+ array('pStyle' => 'Heading1', 'format' => 'decimal', 'text' => '%1'),
+ array('pStyle' => 'Heading2', 'format' => 'decimal', 'text' => '%1.%2'),
+ array('pStyle' => 'Heading3', 'format' => 'decimal', 'text' => '%1.%2.%3'),
+ )
+ )
+);
+$phpWord->addTitleStyle(1, array('size' => 16), array('numStyle' => 'hNum', 'numLevel' => 0));
+$phpWord->addTitleStyle(2, array('size' => 14), array('numStyle' => 'hNum', 'numLevel' => 1));
+$phpWord->addTitleStyle(3, array('size' => 12), array('numStyle' => 'hNum', 'numLevel' => 2));
+
+$section->addTitle('Heading 1', 1);
+$section->addTitle('Heading 2', 2);
+$section->addTitle('Heading 3', 3);
+```
+
+## Add a link within a title
+
+Apply 'HeadingN' paragraph style to TextRun or Link. Sample code:
+
+``` php
+addTitleStyle(1, array('size' => 16, 'bold' => true));
+$phpWord->addTitleStyle(2, array('size' => 14, 'bold' => true));
+$phpWord->addFontStyle('Link', array('color' => '0000FF', 'underline' => 'single'));
+
+$section = $phpWord->addSection();
+
+// Textrun
+$textrun = $section->addTextRun('Heading1');
+$textrun->addText('The ');
+$textrun->addLink('https://github.com/PHPOffice/PHPWord', 'PHPWord', 'Link');
+
+// Link
+$section->addLink('https://github.com/', 'GitHub', 'Link', 'Heading2');
+```
+
+## Remove [Compatibility Mode] text in the MS Word title bar
+
+Use the ``Metadata\Compatibility\setOoxmlVersion(n)`` method with ``n`` is the version of Office:
+
+* 14 = Office 2010
+* 15 = Office 2013
+
+``` php
+getCompatibility()->setOoxmlVersion(15);
+```
diff --git a/docs/index.md b/docs/index.md
new file mode 100644
index 0000000000..211fc31a79
--- /dev/null
+++ b/docs/index.md
@@ -0,0 +1,115 @@
+#
+
+
+
+PHPWord is a library written in pure PHP that provides a set ofclasses to write to different document file formats, i.e. [Microsoft Office Open XML](http://en.wikipedia.org/wiki/Office_Open_XML)(`.docx`), OASIS [Open Document Format for Office Applications](http://en.wikipedia.org/wiki/OpenDocument) (`.odt`), [Rich Text Format](http://en.wikipedia.org/wiki/Rich_Text_Format) (`.rtf`), [Microsoft Word Binary File](https://en.wikipedia.org/wiki/Doc_(computing)) (`.doc`), HTML (`.html`), and PDF (`.pdf`).
+
+PHPWord is an open source project licensed under the terms of [LGPL version 3](https://github.com/PHPOffice/PHPWord/blob/master/COPYING.LESSER). PHPWord is aimed to be a high quality software product by incorporating [continuous integration and unit testing](https://github.com/PHPOffice/PHPWord/actions/workflows/php.yml). You can learn more about PHPWord by reading this Developers'Documentation.
+
+
+## Features
+
+- Set document properties, e.g. title, subject, and creator.
+- Create document sections with different settings, e.g. portrait/landscape, page size, and page numbering
+- Create header and footer for each sections
+- Set default font type, font size, and paragraph style
+- Use UTF-8 and East Asia fonts/characters
+- Define custom font styles (e.g. bold, italic, color) and paragraph styles (e.g. centered, multicolumns, spacing) either as named style or inline in text
+- Insert paragraphs, either as a simple text or complex one (a text run) that contains other elements
+- Insert titles (headers) and table of contents
+- Insert text breaks and page breaks
+- Insert and format images, either local, remote, or as page watermarks
+- Insert binary OLE Objects such as Excel or Visio
+- Insert and format table with customized properties for each rows (e.g. repeat as header row) and cells (e.g. background color, rowspan, colspan)
+- Insert list items as bulleted, numbered, or multilevel
+- Insert hyperlinks
+- Insert footnotes and endnotes
+- Insert drawing shapes (arc, curve, line, polyline, rect, oval)
+- Insert charts (pie, doughnut, bar, line, area, scatter, radar)
+- Insert form fields (textinput, checkbox, and dropdown)
+- Create document from templates
+- Use XSL 1.0 style sheets to transform headers, main document part, and footers of an OOXML template
+- ... and many more features on progress
+
+## File formats
+
+Below are the supported features for each file formats.
+
+
+### Writers
+
+
+| Features | | OOXML | ODF | RTF | HTML | PDF |
+|---------------------------|----------------------|--------|-------|-------|--------|--------|
+| **Document Properties** | Standard | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: |
+| | Custom | :material-check: | :material-check: | | | |
+| **Element Type** | Text | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: |
+| | Text Run | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: |
+| | Title | :material-check: | :material-check: | | :material-check: | :material-check: |
+| | Link | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: |
+| | Preserve Text | :material-check: | | | | |
+| | Text Break | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: |
+| | Page Break | :material-check: | | :material-check: | | |
+| | List | :material-check: | :material-check: | | | |
+| | Table | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: |
+| | Image | :material-check: | :material-check: | :material-check: | :material-check: | |
+| | Object | :material-check: | | | | |
+| | Watermark | :material-check: | | | | |
+| | Table of Contents | :material-check: | | | | |
+| | Header | :material-check: | | | | |
+| | Footer | :material-check: | | | | |
+| | Footnote | :material-check: | | | :material-check: | |
+| | Endnote | :material-check: | | | :material-check: | |
+| | Comments | :material-check: | | | | |
+| **Graphs** | 2D basic graphs | :material-check: | | | | |
+| | 2D advanced graphs | | | | | |
+| | 3D graphs | :material-check: | | | | |
+| **Math** | OMML support | :material-check: | | | | |
+| | MathML support | | :material-check: | | | |
+| **Bonus** | Encryption | | | | | |
+| | Protection | | | | | |
+
+### Readers
+
+
+| Features | | OOXML | DOC | ODF | RTF | HTML |
+|---------------------------|----------------------|--------|-------|-------|-------|-------|
+| **Document Properties** | Standard | :material-check: | | | | |
+| | Custom | :material-check: | | | | |
+| **Element Type** | Text | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: |
+| | Text Run | :material-check: | | | | |
+| | Title | :material-check: | | :material-check: | | |
+| | Link | :material-check: | :material-check: | | | |
+| | Preserve Text | :material-check: | | | | |
+| | Text Break | :material-check: | :material-check: | | | |
+| | Page Break | :material-check: | | | | |
+| | List | :material-check: | | :material-check: | | :material-check: |
+| | Table | :material-check: | | | | :material-check: |
+| | Image | :material-check: | :material-check: | | | |
+| | Object | | | | | |
+| | Watermark | | | | | |
+| | Table of Contents | | | | | |
+| | Header | :material-check: | | | | |
+| | Footer | :material-check: | | | | |
+| | Footnote | :material-check: | | | | |
+| | Endnote | :material-check: | | | | |
+| | Comments | :material-check: | | | | |
+| **Graphs** | 2D basic graphs | | | | | |
+| | 2D advanced graphs | | | | | |
+| | 3D graphs | | | | | |
+| **Math** | OMML support | :material-check: | | | | |
+| | MathML support | | :material-check: | | | |
+| **Bonus** | Encryption | | | | | |
+| | Protection | | | | | |
+
+
+## Contributing
+
+We welcome everyone to contribute to PHPWord. Below are some of the things that you can do to contribute:
+
+- Read [our contributing guide](https://github.com/PHPOffice/PHPWord/blob/master/CONTRIBUTING.md)
+- [Fork us](https://github.com/PHPOffice/PHPWord/fork) and [request a pull](https://github.com/PHPOffice/PHPWord/pulls) to the [master](https://github.com/PHPOffice/PHPWord/tree/master) branch
+- Submit [bug reports or feature requests](https://github.com/PHPOffice/PHPWord/issues) to GitHub
+- Follow [@PHPOffice](https://twitter.com/PHPOffice) on Twitter
diff --git a/docs/index.rst b/docs/index.rst
deleted file mode 100644
index fd3a3fa910..0000000000
--- a/docs/index.rst
+++ /dev/null
@@ -1,39 +0,0 @@
-.. PHPWord documentation master file, created by
- sphinx-quickstart on Fri Mar 14 23:09:26 2014.
- You can adapt this file completely to your liking, but it should at least
- contain the root `toctree` directive.
-
-Welcome to PHPWord's documentation
-==================================
-
-|PHPWord|
-
-PHPWord is a library written in pure PHP that provides a set of classes to
-write to and read from different document file formats. The current version of
-PHPWord supports Microsoft Office Open XML (OOXML or OpenXML), OASIS Open
-Document Format for Office Applications (OpenDocument or ODF), and Rich Text
-Format (RTF).
-
-.. toctree::
- :maxdepth: 2
-
- intro
- setup
- general
- containers
- elements
- templates
- writersreaders
- recipes
- faq
- credits
- references
-
-Indices and tables
-==================
-
-* :ref:`genindex`
-* :ref:`modindex`
-* :ref:`search`
-
-.. |PHPWord| image:: images/phpword.png
diff --git a/docs/install.md b/docs/install.md
new file mode 100644
index 0000000000..4e485bf739
--- /dev/null
+++ b/docs/install.md
@@ -0,0 +1,70 @@
+# Installation
+
+## Requirements
+
+Mandatory:
+
+- PHP 7.1+
+- PHP [DOM extension](http://php.net/manual/en/book.dom.php)
+- PHP [JSON extension](http://php.net/manual/en/book.json.php)
+- PHP [XML Parser extension](http://www.php.net/manual/en/xml.installation.php)
+- PHP [XMLWriter extension](http://php.net/manual/en/book.xmlwriter.php)
+
+
+## Installation
+
+There are two ways to install PHPWord, i.e. via [Composer](http://getcomposer.org) or manually by downloading the library.
+
+### Using Composer
+
+To install via Composer, add the following lines to your `composer.json`:
+
+``` json
+{
+ "require": {
+ "phpoffice/phpword": "dev-master"
+ }
+}
+```
+
+
+### Using manual install
+To install manually:
+
+* [download PHPOffice\PHPWord package from GitHub](https://github.com/PHPOffice/PHPWord/archive/master.zip)
+* extract the package and put the contents to your machine.
+
+
+``` php
+`__ (OOXML or
-OpenXML), OASIS `Open Document Format for Office
-Applications `__
-(OpenDocument or ODF), and `Rich Text
-Format `__ (RTF).
-
-PHPWord is an open source project licensed under the terms of `LGPL
-version 3 `__.
-PHPWord is aimed to be a high quality software product by incorporating
-`continuous integration `__ and
-`unit testing `__.
-You can learn more about PHPWord by reading this Developers'
-Documentation and the `API
-Documentation `__.
-
-Features
---------
-
-- Set document properties, e.g. title, subject, and creator.
-- Create document sections with different settings, e.g.
- portrait/landscape, page size, and page numbering
-- Create header and footer for each sections
-- Set default font type, font size, and paragraph style
-- Use UTF-8 and East Asia fonts/characters
-- Define custom font styles (e.g. bold, italic, color) and paragraph
- styles (e.g. centered, multicolumns, spacing) either as named style
- or inline in text
-- Insert paragraphs, either as a simple text or complex one (a text
- run) that contains other elements
-- Insert titles (headers) and table of contents
-- Insert text breaks and page breaks
-- Insert and format images, either local, remote, or as page watermarks
-- Insert binary OLE Objects such as Excel or Visio
-- Insert and format table with customized properties for each rows
- (e.g. repeat as header row) and cells (e.g. background color,
- rowspan, colspan)
-- Insert list items as bulleted, numbered, or multilevel
-- Insert hyperlinks
-- Insert footnotes and endnotes
-- Create document from templates
-- Use XSL 1.0 style sheets to transform main document part of OOXML
- template
-- ... and many more features on progress
-
-File formats
-------------
-
-Below are the supported features for each file formats.
-
-Writers
-~~~~~~~
-
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| Features | | DOCX | ODT | RTF | HTML | PDF |
-+===========================+======================+========+=======+=======+========+=======+
-| **Document Properties** | Standard | ✓ | ✓ | ✓ | ✓ | ✓ |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Custom | ✓ | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| **Element Type** | Text | ✓ | ✓ | ✓ | ✓ | ✓ |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Text Run | ✓ | ✓ | ✓ | ✓ | ✓ |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Title | ✓ | ✓ | | ✓ | ✓ |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Link | ✓ | ✓ | ✓ | ✓ | ✓ |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Preserve Text | ✓ | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Text Break | ✓ | ✓ | ✓ | ✓ | ✓ |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Page Break | ✓ | | ✓ | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | List | ✓ | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Table | ✓ | ✓ | ✓ | ✓ | ✓ |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Image | ✓ | ✓ | ✓ | ✓ | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Object | ✓ | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Watermark | ✓ | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Table of Contents | ✓ | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Header | ✓ | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Footer | ✓ | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Footnote | ✓ | | | ✓ | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Endnote | ✓ | | | ✓ | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| **Graphs** | 2D basic graphs | | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | 2D advanced graphs | | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | 3D graphs | | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| **Math** | OMML support | | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | MathML support | | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| **Bonus** | Encryption | | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-| | Protection | | | | | |
-+---------------------------+----------------------+--------+-------+-------+--------+-------+
-
-Readers
-~~~~~~~
-
-+---------------------------+----------------------+--------+-------+-------+-------+
-| Features | | DOCX | ODT | RTF | HTML |
-+===========================+======================+========+=======+=======+=======+
-| **Document Properties** | Standard | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Custom | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| **Element Type** | Text | ✓ | ✓ | ✓ | ✓ |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Text Run | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Title | ✓ | ✓ | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Link | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Preserve Text | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Text Break | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Page Break | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | List | ✓ | ✓ | | ✓ |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Table | ✓ | | | ✓ |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Image | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Object | | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Watermark | | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Table of Contents | | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Header | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Footer | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Footnote | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Endnote | ✓ | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| **Graphs** | 2D basic graphs | | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | 2D advanced graphs | | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | 3D graphs | | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| **Math** | OMML support | | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | MathML support | | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| **Bonus** | Encryption | | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-| | Protection | | | | |
-+---------------------------+----------------------+--------+-------+-------+-------+
-
-Contributing
-------------
-
-We welcome everyone to contribute to PHPWord. Below are some of the
-things that you can do to contribute:
-
-- Read `our contributing
- guide `__
-- `Fork us `__ and `request
- a pull `__ to the
- `develop `__
- branch
-- Submit `bug reports or feature
- requests `__ to GitHub
-- Follow `@PHPWord `__ and
- `@PHPOffice `__ on Twitter
diff --git a/docs/recipes.rst b/docs/recipes.rst
deleted file mode 100644
index d5678a520e..0000000000
--- a/docs/recipes.rst
+++ /dev/null
@@ -1,67 +0,0 @@
-.. _recipes:
-
-Recipes
-=======
-
-Create float left image
------------------------
-
-Use absolute positioning relative to margin horizontally and to line
-vertically.
-
-.. code-block:: php
-
- $imageStyle = array(
- 'width' => 40,
- 'height' => 40,
- 'wrappingStyle' => 'square',
- 'positioning' => 'absolute',
- 'posHorizontalRel' => 'margin',
- 'posVerticalRel' => 'line',
- );
- $textrun->addImage('resources/_earth.jpg', $imageStyle);
- $textrun->addText($lipsumText);
-
-Download the produced file automatically
-----------------------------------------
-
-Use ``php://output`` as the filename.
-
-.. code-block:: php
-
- $phpWord = new \PhpOffice\PhpWord\PhpWord();
- $section = $phpWord->createSection();
- $section->addText('Hello World!');
- $file = 'HelloWorld.docx';
- header("Content-Description: File Transfer");
- header('Content-Disposition: attachment; filename="' . $file . '"');
- header('Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document');
- header('Content-Transfer-Encoding: binary');
- header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
- header('Expires: 0');
- $xmlWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
- $xmlWriter->save("php://output");
-
-Create numbered headings
-------------------------
-
-Define a numbering style and title styles, and match the two styles (with ``pStyle`` and ``numStyle``) like below.
-
-.. code-block:: php
-
- $phpWord->addNumberingStyle(
- 'hNum',
- array('type' => 'multilevel', 'levels' => array(
- array('pStyle' => 'Heading1', 'format' => 'decimal', 'text' => '%1'),
- array('pStyle' => 'Heading2', 'format' => 'decimal', 'text' => '%1.%2'),
- array('pStyle' => 'Heading3', 'format' => 'decimal', 'text' => '%1.%2.%3'),
- )
- )
- );
- $phpWord->addTitleStyle(1, array('size' => 16), array('numStyle' => 'hNum', 'numLevel' => 0));
- $phpWord->addTitleStyle(2, array('size' => 14), array('numStyle' => 'hNum', 'numLevel' => 1));
- $phpWord->addTitleStyle(3, array('size' => 12), array('numStyle' => 'hNum', 'numLevel' => 2));
-
- $section->addTitle('Heading 1', 1);
- $section->addTitle('Heading 2', 2);
- $section->addTitle('Heading 3', 3);
diff --git a/docs/references.rst b/docs/references.rst
deleted file mode 100644
index 20aa1ed061..0000000000
--- a/docs/references.rst
+++ /dev/null
@@ -1,30 +0,0 @@
-.. _references:
-
-References
-==========
-
-ISO/IEC 29500, Third edition, 2012-09-01
----------------------
-
-- `Part 1: Fundamentals and Markup Language Reference
- `__
-- `Part 2: Open Packaging Conventions
- `__
-- `Part 3: Markup Compatibility and Extensibility
- `__
-- `Part 4: Transitional Migration Features
- `__
-
-Formal specifications
----------------------
-
-- `Oasis OpenDocument Standard Version
- 1.2 `__
-- `Rich Text Format (RTF) Specification, version
- 1.9.1 `__
-
-Other resources
----------------
-
-- `DocumentFormat.OpenXml.Wordprocessing Namespace on
- MSDN `__
diff --git a/docs/setup.rst b/docs/setup.rst
deleted file mode 100644
index e5d61b4ea1..0000000000
--- a/docs/setup.rst
+++ /dev/null
@@ -1,64 +0,0 @@
-.. _setup:
-
-Installing/configuring
-======================
-
-Requirements
-------------
-
-Mandatory:
-
-- PHP 5.3+
-- PHP `Zip `__ extension
-- PHP `XML
- Parser `__
- extension
-
-Optional PHP extensions:
-
-- `GD `__
-- `XMLWriter `__
-- `XSL `__
-
-Installation
-------------
-
-There are two ways to install PHPWord, i.e. via
-`Composer `__ or manually by downloading the
-library.
-
-Using Composer
-~~~~~~~~~~~~~~
-
-To install via Composer, add the following lines to your
-``composer.json``:
-
-.. code-block:: json
-
- {
- "require": {
- "phpoffice/phpword": "dev-master"
- }
- }
-
-Manual install
-~~~~~~~~~~~~~~
-
-To install manually, `download PHPWord package from
-github `__.
-Extract the package and put the contents to your machine. To use the
-library, include ``src/PhpWord/Autoloader.php`` in your script and
-invoke ``Autoloader::register``.
-
-.. code-block:: php
-
- require_once '/path/to/src/PhpWord/Autoloader.php';
- \PhpOffice\PhpWord\Autoloader::register();
-
-Using samples
--------------
-
-After installation, you can browse and use the samples that we've
-provided, either by command line or using browser. If you can access
-your PHPWord library folder using browser, point your browser to the
-``samples`` folder, e.g. ``http://localhost/PhpWord/samples/``.
diff --git a/docs/src/documentation.md b/docs/src/documentation.md
deleted file mode 100644
index 84522c1b5f..0000000000
--- a/docs/src/documentation.md
+++ /dev/null
@@ -1,1038 +0,0 @@
-
-# Contents
-
-- [Introduction](#introduction)
- - [Features](#features)
- - [File formats](#file-formats)
-- [Installing/configuring](#installing-configuring)
- - [Requirements](#requirements)
- - [Installation](#installation)
- - [Using samples](#using-samples)
-- [General usage](#general-usage)
- - [Basic example](#basic-example)
- - [Settings](#settings)
- - [Default font](#default-font)
- - [Document properties](#document-properties)
- - [Measurement units](#measurement-units)
-- [Containers](#containers)
- - [Sections](#sections)
- - [Headers](#headers)
- - [Footers](#footers)
- - [Other containers](#other-containers)
-- [Elements](#elements)
- - [Texts](#texts)
- - [Breaks](#breaks)
- - [Lists](#lists)
- - [Tables](#tables)
- - [Images](#images)
- - [Objects](#objects)
- - [Table of contents](#table-of-contents)
- - [Footnotes & endnotes](#footnotes-endnotes)
- - [Checkboxes](#checkboxes)
- - [Textboxes](#textboxes)
- - [Fields](#fields)
- - [Lines](#lines)
-- [Templates](#templates)
-- [Writers & readers](#writers-readers)
- - [OOXML](#ooxml)
- - [OpenDocument](#opendocument)
- - [RTF](#rtf)
- - [HTML](#html)
- - [PDF](#pdf)
-- [Recipes](#recipes)
-- [Frequently asked questions](#frequently-asked-questions)
-- [References](#references)
-
-# Introduction
-
-PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft [Office Open XML](http://en.wikipedia.org/wiki/Office_Open_XML) (OOXML or OpenXML), OASIS [Open Document Format for Office Applications](http://en.wikipedia.org/wiki/OpenDocument) (OpenDocument or ODF), and [Rich Text Format](http://en.wikipedia.org/wiki/Rich_Text_Format) (RTF).
-
-PHPWord is an open source project licensed under the terms of [LGPL version 3](https://github.com/PHPOffice/PHPWord/blob/develop/COPYING.LESSER). PHPWord is aimed to be a high quality software product by incorporating [continuous integration](https://travis-ci.org/PHPOffice/PHPWord) and [unit testing](http://phpoffice.github.io/PHPWord/coverage/develop/). You can learn more about PHPWord by reading this Developers' Documentation and the [API Documentation](http://phpoffice.github.io/PHPWord/docs/develop/).
-
-## Features
-
-- Set document properties, e.g. title, subject, and creator.
-- Create document sections with different settings, e.g. portrait/landscape, page size, and page numbering
-- Create header and footer for each sections
-- Set default font type, font size, and paragraph style
-- Use UTF-8 and East Asia fonts/characters
-- Define custom font styles (e.g. bold, italic, color) and paragraph styles (e.g. centered, multicolumns, spacing) either as named style or inline in text
-- Insert paragraphs, either as a simple text or complex one (a text run) that contains other elements
-- Insert titles (headers) and table of contents
-- Insert text breaks and page breaks
-- Insert and format images, either local, remote, or as page watermarks
-- Insert binary OLE Objects such as Excel or Visio
-- Insert and format table with customized properties for each rows (e.g. repeat as header row) and cells (e.g. background color, rowspan, colspan)
-- Insert list items as bulleted, numbered, or multilevel
-- Insert hyperlinks
-- Insert footnotes and endnotes
-- Create document from templates
-- Use XSL 1.0 style sheets to transform main document part of OOXML template
-- ... and many more features on progress
-
-## File formats
-
-Below are the supported features for each file formats.
-
-### Writers
-
-| Features | | DOCX | ODT | RTF | HTML | PDF |
-|-------------------------|--------------------|------|-----|-----|------|-----|
-| **Document Properties** | Standard | ✓ | ✓ | ✓ | ✓ | |
-| | Custom | ✓ | ✓ | | | |
-| **Element Type** | Text | ✓ | ✓ | ✓ | ✓ | ✓ |
-| | Text Run | ✓ | ✓ | ✓ | ✓ | ✓ |
-| | Title | ✓ | ✓ | | ✓ | ✓ |
-| | Link | ✓ | ✓ | ✓ | ✓ | ✓ |
-| | Preserve Text | ✓ | | | | |
-| | Text Break | ✓ | ✓ | ✓ | ✓ | ✓ |
-| | Page Break | ✓ | | ✓ | | |
-| | List | ✓ | | | | |
-| | Table | ✓ | ✓ | ✓ | ✓ | ✓ |
-| | Image | ✓ | ✓ | ✓ | ✓ | |
-| | Object | ✓ | | | | |
-| | Watermark | ✓ | | | | |
-| | Table of Contents | ✓ | | | | |
-| | Header | ✓ | | | | |
-| | Footer | ✓ | | | | |
-| | Footnote | ✓ | | | ✓ | |
-| | Endnote | ✓ | | | ✓ | |
-| **Graphs** | 2D basic graphs | | | | | |
-| | 2D advanced graphs | | | | | |
-| | 3D graphs | | | | | |
-| **Math** | OMML support | | | | | |
-| | MathML support | | | | | |
-| **Bonus** | Encryption | | | | | |
-| | Protection | | | | | |
-
-### Readers
-
-| Features | | DOCX | ODT | RTF | HTML|
-|-------------------------|--------------------|------|-----|-----|-----|
-| **Document Properties** | Standard | ✓ | | | |
-| | Custom | ✓ | | | |
-| **Element Type** | Text | ✓ | ✓ | ✓ | ✓ |
-| | Text Run | ✓ | | | |
-| | Title | ✓ | ✓ | | |
-| | Link | ✓ | | | |
-| | Preserve Text | ✓ | | | |
-| | Text Break | ✓ | | | |
-| | Page Break | ✓ | | | |
-| | List | ✓ | ✓ | | ✓ |
-| | Table | ✓ | | | ✓ |
-| | Image | ✓ | | | |
-| | Object | | | | |
-| | Watermark | | | | |
-| | Table of Contents | | | | |
-| | Header | ✓ | | | |
-| | Footer | ✓ | | | |
-| | Footnote | ✓ | | | |
-| | Endnote | ✓ | | | |
-| **Graphs** | 2D basic graphs | | | | |
-| | 2D advanced graphs | | | | |
-| | 3D graphs | | | | |
-| **Math** | OMML support | | | | |
-| | MathML support | | | | |
-| **Bonus** | Encryption | | | | |
-| | Protection | | | | |
-
-## Contributing
-
-We welcome everyone to contribute to PHPWord. Below are some of the things that you can do to contribute:
-
-- Read [our contributing guide](https://github.com/PHPOffice/PHPWord/blob/master/CONTRIBUTING.md)
-- [Fork us](https://github.com/PHPOffice/PHPWord/fork) and [request a pull](https://github.com/PHPOffice/PHPWord/pulls) to the [develop](https://github.com/PHPOffice/PHPWord/tree/develop) branch
-- Submit [bug reports or feature requests](https://github.com/PHPOffice/PHPWord/issues) to GitHub
-- Follow [@PHPWord](https://twitter.com/PHPWord) and [@PHPOffice](https://twitter.com/PHPOffice) on Twitter
-
-# Installing/configuring
-
-## Requirements
-
-Mandatory:
-
-- PHP 5.3+
-- PHP [Zip](http://php.net/manual/en/book.zip.php) extension
-- PHP [XML Parser](http://www.php.net/manual/en/xml.installation.php) extension
-
-Optional PHP extensions:
-
-- [GD](http://php.net/manual/en/book.image.php)
-- [XMLWriter](http://php.net/manual/en/book.xmlwriter.php)
-- [XSL](http://php.net/manual/en/book.xsl.php)
-
-## Installation
-
-There are two ways to install PHPWord, i.e. via [Composer](http://getcomposer.org/) or manually by downloading the library.
-
-### Using Composer
-
-To install via Composer, add the following lines to your `composer.json`:
-
-```json
-{
- "require": {
- "phpoffice/phpword": "dev-master"
- }
-}
-```
-
-### Manual install
-
-To install manually, [download PHPWord package from github](https://github.com/PHPOffice/PHPWord/archive/master.zip). Extract the package and put the contents to your machine. To use the library, include `src/PhpWord/Autoloader.php` in your script and invoke `Autoloader::register`.
-
-```php
-require_once '/path/to/src/PhpWord/Autoloader.php';
-\PhpOffice\PhpWord\Autoloader::register();
-```
-
-## Using samples
-
-After installation, you can browse and use the samples that we've provided, either by command line or using browser. If you can access your PHPWord library folder using browser, point your browser to the `samples` folder, e.g. `http://localhost/PhpWord/samples/`.
-
-# General usage
-
-## Basic example
-
-The following is a basic example of the PHPWord library. More examples are provided in the [samples folder](https://github.com/PHPOffice/PHPWord/tree/master/samples/).
-
-```php
-require_once 'src/PhpWord/Autoloader.php';
-\PhpOffice\PhpWord\Autoloader::register();
-
-$phpWord = new \PhpOffice\PhpWord\PhpWord();
-
-// Every element you want to append to the word document is placed in a section.
-// To create a basic section:
-$section = $phpWord->addSection();
-
-// After creating a section, you can append elements:
-$section->addText('Hello world!');
-
-// You can directly style your text by giving the addText function an array:
-$section->addText('Hello world! I am formatted.',
- array('name'=>'Tahoma', 'size'=>16, 'bold'=>true));
-
-// If you often need the same style again you can create a user defined style
-// to the word document and give the addText function the name of the style:
-$phpWord->addFontStyle('myOwnStyle',
- array('name'=>'Verdana', 'size'=>14, 'color'=>'1B2232'));
-$section->addText('Hello world! I am formatted by a user defined style',
- 'myOwnStyle');
-
-// You can also put the appended element to local object like this:
-$fontStyle = new \PhpOffice\PhpWord\Style\Font();
-$fontStyle->setBold(true);
-$fontStyle->setName('Verdana');
-$fontStyle->setSize(22);
-$myTextElement = $section->addText('Hello World!');
-$myTextElement->setFontStyle($fontStyle);
-
-// Finally, write the document:
-$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
-$objWriter->save('helloWorld.docx');
-
-$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'ODText');
-$objWriter->save('helloWorld.odt');
-
-$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'RTF');
-$objWriter->save('helloWorld.rtf');
-```
-
-## Settings
-
-The `PhpOffice\PhpWord\Settings` class provides some options that will affect the behavior of PHPWord. Below are the options.
-
-### XML Writer compatibility
-
-This option sets [XMLWriter::setIndent](http://www.php.net/manual/en/function.xmlwriter-set-indent.php) and [XMLWriter::setIndentString](http://www.php.net/manual/en/function.xmlwriter-set-indent-string.php). The default value of this option is `true` (compatible), which is [required for OpenOffice](https://github.com/PHPOffice/PHPWord/issues/103) to render OOXML document correctly. You can set this option to `false` during development to make the resulting XML file easier to read.
-
-```php
-\PhpOffice\PhpWord\Settings::setCompatibility(false);
-```
-
-### Zip class
-
-By default, PHPWord uses PHP [ZipArchive](http://php.net/manual/en/book.zip.php) to read or write ZIP compressed archive and the files inside them. If you can't have ZipArchive installed on your server, you can use pure PHP library alternative, [PCLZip](http://www.phpconcept.net/pclzip/), which included with PHPWord.
-
-```php
-\PhpOffice\PhpWord\Settings::setZipClass(\PhpOffice\PhpWord\Settings::PCLZIP);
-```
-
-## Default font
-
-By default, every text appears in Arial 10 point. You can alter the default font by using the following two functions:
-
-```php
-$phpWord->setDefaultFontName('Times New Roman');
-$phpWord->setDefaultFontSize(12);
-```
-
-## Document properties
-
-You can set the document properties such as title, creator, and company name. Use the following functions:
-
-```php
-$properties = $phpWord->getDocumentProperties();
-$properties->setCreator('My name');
-$properties->setCompany('My factory');
-$properties->setTitle('My title');
-$properties->setDescription('My description');
-$properties->setCategory('My category');
-$properties->setLastModifiedBy('My name');
-$properties->setCreated(mktime(0, 0, 0, 3, 12, 2014));
-$properties->setModified(mktime(0, 0, 0, 3, 14, 2014));
-$properties->setSubject('My subject');
-$properties->setKeywords('my, key, word');
-```
-
-## Measurement units
-
-The base length unit in Open Office XML is twip. Twip means "TWentieth of an Inch Point", i.e. 1 twip = 1/1440 inch.
-
-You can use PHPWord helper functions to convert inches, centimeters, or points to twips.
-
-```php
-// Paragraph with 6 points space after
-$phpWord->addParagraphStyle('My Style', array(
- 'spaceAfter' => \PhpOffice\PhpWord\Shared\Font::pointSizeToTwips(6))
-);
-
-$section = $phpWord->addSection();
-$sectionStyle = $section->getSettings();
-// half inch left margin
-$sectionStyle->setMarginLeft(\PhpOffice\PhpWord\Shared\Font::inchSizeToTwips(.5));
-// 2 cm right margin
-$sectionStyle->setMarginRight(\PhpOffice\PhpWord\Shared\Font::centimeterSizeToTwips(2));
-```
-
-# Containers
-
-Containers are objects where you can put elements (texts, lists, tables, etc). There are 3 main containers, i.e. sections, headers, and footers. There are 3 elements that can also act as containers, i.e. textruns, table cells, and footnotes.
-
-## Sections
-
-Every visible element in word is placed inside of a section. To create a section, use the following code:
-
-```php
-$section = $phpWord->addSection($sectionSettings);
-```
-
-The `$sectionSettings` is an optional associative array that sets the section. Example:
-
-```php
-$sectionSettings = array(
- 'orientation' => 'landscape',
- 'marginTop' => 600,
- 'colsNum' => 2,
-);
-```
-
-### Section settings
-
-Below are the available settings for section:
-
-- `orientation` Page orientation, i.e. 'portrait' (default) or 'landscape'
-- `marginTop` Page margin top in twips
-- `marginLeft` Page margin left in twips
-- `marginRight` Page margin right in twips
-- `marginBottom` Page margin bottom in twips
-- `borderTopSize` Border top size in twips
-- `borderTopColor` Border top color
-- `borderLeftSize` Border left size in twips
-- `borderLeftColor` Border left color
-- `borderRightSize` Border right size in twips
-- `borderRightColor` Border right color
-- `borderBottomSize` Border bottom size in twips
-- `borderBottomColor` Border bottom color
-- `headerHeight` Spacing to top of header
-- `footerHeight` Spacing to bottom of footer
-- `gutter` Page gutter spacing
-- `colsNum` Number of columns
-- `colsSpace` Spacing between columns
-- `breakType` Section break type (nextPage, nextColumn, continuous, evenPage, oddPage)
-
-The following two settings are automatically set by the use of the `orientation` setting. You can alter them but that's not recommended.
-
-- `pageSizeW` Page width in twips
-- `pageSizeH` Page height in twips
-
-### Page number
-
-You can change a section page number by using the `pageNumberingStart` property of the section.
-
-```php
-// Method 1
-$section = $phpWord->addSection(array('pageNumberingStart' => 1));
-
-// Method 2
-$section = $phpWord->addSection();
-$section->getSettings()->setPageNumberingStart(1);
-```
-
-### Multicolumn
-
-You can change a section layout to multicolumn (like in a newspaper) by using the `breakType` and `colsNum` property of the section.
-
-```php
-// Method 1
-$section = $phpWord->addSection(array('breakType' => 'continuous', 'colsNum' => 2));
-
-// Method 2
-$section = $phpWord->addSection();
-$section->getSettings()->setBreakType('continuous');
-$section->getSettings()->setColsNum(2);
-```
-
-### Line numbering
-
-You can apply line numbering to a section by using the `lineNumbering` property of the section.
-
-```php
-// Method 1
-$section = $phpWord->addSection(array('lineNumbering' => array()));
-
-// Method 2
-$section = $phpWord->addSection();
-$section->getSettings()->setLineNumbering(array());
-```
-
-Below are the properties of the line numbering style.
-
-- `start` Line numbering starting value
-- `increment` Line number increments
-- `distance` Distance between text and line numbering in twip
-- `restart` Line numbering restart setting continuous|newPage|newSection
-
-## Headers
-
-Each section can have its own header reference. To create a header use the `addHeader` method:
-
-```php
-$header = $section->addHeader();
-```
-
-Be sure to save the result in a local object. You can use all elements that are available for the footer. See "Footer" section for detail. Additionally, only inside of the header reference you can add watermarks or background pictures. See "Watermarks" section.
-
-## Footers
-
-Each section can have its own footer reference. To create a footer, use the `addFooter` method:
-
-```php
-$footer = $section->addFooter();
-```
-
-Be sure to save the result in a local object to add elements to a footer. You can add the following elements to footers:
-
-- Texts `addText` and `createTextrun`
-- Text breaks
-- Images
-- Tables
-- Preserve text
-
-See the "Elements" section for the detail of each elements.
-
-## Other containers
-
-Textruns, table cells, and footnotes are elements that can also act as containers. See the corresponding "Elements" section for the detail of each elements.
-
-# Elements
-
-Below are the matrix of element availability in each container. The column shows the containers while the rows lists the elements.
-
-| Num | Element | Section | Header | Footer | Cell | Text Run | Footnote |
-|-----|---------------|---------|--------|--------|------|----------|----------|
-| 1 | Text | v | v | v | v | v | v |
-| 2 | Text Run | v | v | v | v | - | - |
-| 3 | Link | v | v | v | v | v | v |
-| 4 | Title | v | ? | ? | ? | ? | ? |
-| 5 | Preserve Text | ? | v | v | v* | - | - |
-| 6 | Text Break | v | v | v | v | v | v |
-| 7 | Page Break | v | - | - | - | - | - |
-| 8 | List | v | v | v | v | - | - |
-| 9 | Table | v | v | v | v | - | - |
-| 10 | Image | v | v | v | v | v | v |
-| 11 | Watermark | - | v | - | - | - | - |
-| 12 | Object | v | v | v | v | v | v |
-| 13 | TOC | v | - | - | - | - | - |
-| 14 | Footnote | v | - | - | v** | v** | - |
-| 15 | Endnote | v | - | - | v** | v** | - |
-| 16 | CheckBox | v | v | v | v | - | - |
-| 17 | TextBox | v | v | v | v | - | - |
-| 18 | Field | v | v | v | v | v | v |
-| 19 | Line | v | v | v | v | v | v |
-
-Legend:
-
-- `v` Available
-- `v*` Available only when inside header/footer
-- `v**` Available only when inside section
-- `-` Not available
-- `?` Should be available
-
-## Texts
-
-Text can be added by using `addText` and `addTextRun` method. `addText` is used for creating simple paragraphs that only contain texts with the same style. `addTextRun` is used for creating complex paragraphs that contain text with different style (some bold, other italics, etc) or other elements, e.g. images or links. The syntaxes are as follow:
-
-```php
-$section->addText($text, [$fontStyle], [$paragraphStyle]);
-$textrun = $section->addTextRun([$paragraphStyle]);
-```
-
-### Text styles
-
-You can use the `$fontStyle` and `$paragraphStyle` variable to define text formatting. There are 2 options to style the inserted text elements, i.e. inline style by using array or defined style by adding style definition.
-
-Inline style examples:
-
-```php
-$fontStyle = array('name' => 'Times New Roman', 'size' => 9);
-$paragraphStyle = array('align' => 'both');
-$section->addText('I am simple paragraph', $fontStyle, $paragraphStyle);
-
-$textrun = $section->addTextRun();
-$textrun->addText('I am bold', array('bold' => true));
-$textrun->addText('I am italic', array('italic' => true));
-$textrun->addText('I am colored', array('color' => 'AACC00'));
-```
-
-Defined style examples:
-
-```php
-$fontStyle = array('color' => '006699', 'size' => 18, 'bold' => true);
-$phpWord->addFontStyle('fStyle', $fontStyle);
-$text = $section->addText('Hello world!', 'fStyle');
-
-$paragraphStyle = array('align' => 'center');
-$phpWord->addParagraphStyle('pStyle', $paragraphStyle);
-$text = $section->addText('Hello world!', 'pStyle');
-```
-
-#### Font style
-
-Available font styles:
-
-- `name` Font name, e.g. *Arial*
-- `size` Font size, e.g. *20*, *22*,
-- `hint` Font content type, *default*, *eastAsia*, or *cs*
-- `bold` Bold, *true* or *false*
-- `italic` Italic, *true* or *false*
-- `superScript` Superscript, *true* or *false*
-- `subScript` Subscript, *true* or *false*
-- `underline` Underline, *dash*, *dotted*, etc.
-- `strikethrough` Strikethrough, *true* or *false*
-- `doubleStrikethrough` Double strikethrough, *true* or *false*
-- `color` Font color, e.g. *FF0000*
-- `fgColor` Font highlight color, e.g. *yellow*, *green*, *blue*
-- `bgColor` Font background color, e.g. *FF0000*
-- `smallCaps` Small caps, *true* or *false*
-- `allCaps` All caps, *true* or *false*
-
-#### Paragraph style
-
-Available paragraph styles:
-
-- `align` Paragraph alignment, *left*, *right* or *center*
-- `spaceBefore` Space before paragraph
-- `spaceAfter` Space after paragraph
-- `indent` Indent by how much
-- `hanging` Hanging by how much
-- `basedOn` Parent style
-- `next` Style for next paragraph
-- `widowControl` Allow first/last line to display on a separate page, *true* or *false*
-- `keepNext` Keep paragraph with next paragraph, *true* or *false*
-- `keepLines` Keep all lines on one page, *true* or *false*
-- `pageBreakBefore` Start paragraph on next page, *true* or *false*
-- `lineHeight` text line height, e.g. *1.0*, *1.5*, ect...
-- `tabs` Set of custom tab stops
-
-### Titles
-
-If you want to structure your document or build table of contents, you need titles or headings. To add a title to the document, use the `addTitleStyle` and `addTitle` method.
-
-```php
-$phpWord->addTitleStyle($depth, [$fontStyle], [$paragraphStyle]);
-$section->addTitle($text, [$depth]);
-```
-
-Its necessary to add a title style to your document because otherwise the title won't be detected as a real title.
-
-### Links
-
-You can add Hyperlinks to the document by using the function addLink:
-
-```php
-$section->addLink($linkSrc, [$linkName], [$fontStyle], [$paragraphStyle]);
-```
-
-- `$linkSrc` The URL of the link.
-- `$linkName` Placeholder of the URL that appears in the document.
-- `$fontStyle` See "Font style" section.
-- `$paragraphStyle` See "Paragraph style" section.
-
-### Preserve texts
-
-The `addPreserveText` method is used to add a page number or page count to headers or footers.
-
-```php
-$footer->addPreserveText('Page {PAGE} of {NUMPAGES}.');
-```
-
-## Breaks
-
-### Text breaks
-
-Text breaks are empty new lines. To add text breaks, use the following syntax. All paramaters are optional.
-
-```php
-$section->addTextBreak([$breakCount], [$fontStyle], [$paragraphStyle]);
-```
-
-- `$breakCount` How many lines
-- `$fontStyle` See "Font style" section.
-- `$paragraphStyle` See "Paragraph style" section.
-
-### Page breaks
-
-There are two ways to insert a page breaks, using the `addPageBreak` method or using the `pageBreakBefore` style of paragraph.
-
-:: code-block:: php
-
-> \$section-\>addPageBreak();
-
-## Lists
-
-To add a list item use the function `addListItem`.
-
-Basic usage:
-
-```php
-$section->addListItem($text, [$depth], [$fontStyle], [$listStyle], [$paragraphStyle]);
-```
-
-Parameters:
-
-- `$text` Text that appears in the document.
-- `$depth` Depth of list item.
-- `$fontStyle` See "Font style" section.
-- `$listStyle` List style of the current element TYPE\_NUMBER, TYPE\_ALPHANUM, TYPE\_BULLET\_FILLED, etc. See list of constants in PHPWord\_Style\_ListItem.
-- `$paragraphStyle` See "Paragraph style" section.
-
-Advanced usage:
-
-You can also create your own numbering style by changing the `$listStyle` parameter with the name of your numbering style.
-
-```php
-$phpWord->addNumberingStyle(
- 'multilevel',
- array('type' => 'multilevel', 'levels' => array(
- array('format' => 'decimal', 'text' => '%1.', 'left' => 360, 'hanging' => 360, 'tabPos' => 360),
- array('format' => 'upperLetter', 'text' => '%2.', 'left' => 720, 'hanging' => 360, 'tabPos' => 720),
- )
- )
-);
-$section->addListItem('List Item I', 0, null, 'multilevel');
-$section->addListItem('List Item I.a', 1, null, 'multilevel');
-$section->addListItem('List Item I.b', 1, null, 'multilevel');
-$section->addListItem('List Item II', 0, null, 'multilevel');
-```
-
-Level styles:
-
-- `start` Starting value
-- `format` Numbering format bullet|decimal|upperRoman|lowerRoman|upperLetter|lowerLetter
-- `restart` Restart numbering level symbol
-- `suffix` Content between numbering symbol and paragraph text tab|space|nothing
-- `text` Numbering level text e.g. %1 for nonbullet or bullet character
-- `align` Numbering symbol align left|center|right|both
-- `left` See paragraph style
-- `hanging` See paragraph style
-- `tabPos` See paragraph style
-- `font` Font name
-- `hint` See font style
-
-## Tables
-
-To add tables, rows, and cells, use the `addTable`, `addRow`, and `addCell` methods:
-
-```php
-$table = $section->addTable([$tableStyle]);
-$table->addRow([$height], [$rowStyle]);
-$cell = $table->addCell($width, [$cellStyle]);
-```
-
-Table style can be defined with `addTableStyle`:
-
-```php
-$tableStyle = array(
- 'borderColor' => '006699',
- 'borderSize' => 6,
- 'cellMargin' => 50
-);
-$firstRowStyle = array('bgColor' => '66BBFF');
-$phpWord->addTableStyle('myTable', $tableStyle, $firstRowStyle);
-$table = $section->addTable('myTable');
-```
-
-### Table, row, and cell styles
-
-Table styles:
-
-- `width` Table width in percent
-- `bgColor` Background color, e.g. '9966CC'
-- `border(Top|Right|Bottom|Left)Size` Border size in twips
-- `border(Top|Right|Bottom|Left)Color` Border color, e.g. '9966CC'
-- `cellMargin(Top|Right|Bottom|Left)` Cell margin in twips
-
-Row styles:
-
-- `tblHeader` Repeat table row on every new page, *true* or *false*
-- `cantSplit` Table row cannot break across pages, *true* or *false*
-- `exactHeight` Row height is exact or at least
-
-Cell styles:
-
-- `width` Cell width in twips
-- `valign` Vertical alignment, *top*, *center*, *both*, *bottom*
-- `textDirection` Direction of text
-- `bgColor` Background color, e.g. '9966CC'
-- `border(Top|Right|Bottom|Left)Size` Border size in twips
-- `border(Top|Right|Bottom|Left)Color` Border color, e.g. '9966CC'
-- `gridSpan` Number of columns spanned
-- `vMerge` *restart* or *continue*
-
-### Cell span
-
-You can span a cell on multiple columns by using `gridSpan` or multiple rows by using `vMerge`.
-
-```php
-$cell = $table->addCell(200);
-$cell->getStyle()->setGridSpan(5);
-```
-
-See `Sample_09_Tables.php` for more code sample.
-
-## Images
-
-To add an image, use the `addImage` method to sections, headers, footers, textruns, or table cells.
-
-```php
-$section->addImage($src, [$style]);
-```
-
-- source String path to a local image or URL of a remote image
-- styles Array fo styles for the image. See below.
-
-Examples:
-
-```php
-$section = $phpWord->addSection();
-$section->addImage(
- 'mars.jpg',
- array(
- 'width' => 100,
- 'height' => 100,
- 'marginTop' => -1,
- 'marginLeft' => -1,
- 'wrappingStyle' => 'behind'
- )
-);
-$footer = $section->addFooter();
-$footer->addImage('http://example.com/image.php');
-$textrun = $section->addTextRun();
-$textrun->addImage('http://php.net/logo.jpg');
-```
-
-### Image styles
-
-Available image styles:
-
-- `width` Width in pixels
-- `height` Height in pixels
-- `align` Image alignment, *left*, *right*, or *center*
-- `marginTop` Top margin in inches, can be negative
-- `marginLeft` Left margin in inches, can be negative
-- `wrappingStyle` Wrapping style, *inline*, *square*, *tight*, *behind*, or *infront*
-
-### Watermarks
-
-To add a watermark (or page background image), your section needs a header reference. After creating a header, you can use the `addWatermark` method to add a watermark.
-
-```php
-$section = $phpWord->addSection();
-$header = $section->addHeader();
-$header->addWatermark('resources/_earth.jpg', array('marginTop' => 200, 'marginLeft' => 55));
-```
-
-## Objects
-
-You can add OLE embeddings, such as Excel spreadsheets or PowerPoint presentations to the document by using `addObject` method.
-
-```php
-$section->addObject($src, [$style]);
-```
-
-## Table of contents
-
-To add a table of contents (TOC), you can use the `addTOC` method. Your TOC can only be generated if you have add at least one title (See "Titles").
-
-```php
-$section->addTOC([$fontStyle], [$tocStyle], [$minDepth], [$maxDepth]);
-```
-
-- `$fontStyle`: See font style section
-- `$tocStyle`: See available options below
-- `$minDepth`: Minimum depth of header to be shown. Default 1
-- `$maxDepth`: Maximum depth of header to be shown. Default 9
-
-Options for `$tocStyle`:
-
-- `tabLeader` Fill type between the title text and the page number. Use the defined constants in PHPWord\_Style\_TOC.
-- `tabPos` The position of the tab where the page number appears in twips.
-- `indent` The indent factor of the titles in twips.
-
-## Footnotes & endnotes
-
-You can create footnotes with `addFootnote` and endnotes with `addEndnote` in texts or textruns, but it's recommended to use textrun to have better layout. You can use `addText`, `addLink`, `addTextBreak`, `addImage`, `addObject` on footnotes and endnotes.
-
-On textrun:
-
-```php
-$textrun = $section->addTextRun();
-$textrun->addText('Lead text.');
-$footnote = $textrun->addFootnote();
-$footnote->addText('Footnote text can have ');
-$footnote->addLink('http://test.com', 'links');
-$footnote->addText('.');
-$footnote->addTextBreak();
-$footnote->addText('And text break.');
-$textrun->addText('Trailing text.');
-$endnote = $textrun->addEndnote();
-$endnote->addText('Endnote put at the end');
-```
-
-On text:
-
-```php
-$section->addText('Lead text.');
-$footnote = $section->addFootnote();
-$footnote->addText('Footnote text.');
-```
-
-The footnote reference number will be displayed with decimal number starting from 1. This number use `FooterReference` style which you can redefine by `addFontStyle` method. Default value for this style is `array('superScript' => true)`;
-
-## Checkboxes
-
-Checkbox elements can be added to sections or table cells by using `addCheckBox`.
-
-```php
-$section->addCheckBox($name, $text, [$fontStyle], [$paragraphStyle])
-```
-
-- `$name` Name of the check box.
-- `$text` Text following the check box
-- `$fontStyle` See "Font style" section.
-- `$paragraphStyle` See "Paragraph style" section.
-
-## Textboxes
-
-To be completed.
-
-## Fields
-
-To be completed.
-
-## Lines
-
-To be completed.
-
-# Templates
-
-You can create a docx template with included search-patterns that can be replaced by any value you wish. Only single-line values can be replaced. To load a template file, use the `loadTemplate` method. After loading the docx template, you can use the `setValue` method to change the value of a search pattern. The search-pattern model is: `${search-pattern}`. It is not possible to add new PHPWord elements to a loaded template file.
-
-Example:
-
-```php
-$template = $phpWord->loadTemplate('Template.docx');
-$template->setValue('Name', 'Somebody someone');
-$template->setValue('Street', 'Coming-Undone-Street 32');
-```
-
-See `Sample_07_TemplateCloneRow.php` for example on how to create multirow from a single row in a template by using `cloneRow`.
-
-See `Sample_23_TemplateBlock.php` for example on how to clone a block of text using `cloneBlock` and delete a block of text using `deleteBlock`.
-
-# Writers & readers
-
-## OOXML
-
-The package of OOXML document consists of the following files.
-
-- _rels/
- - .rels
-- docProps/
- - app.xml
- - core.xml
- - custom.xml
-- word/
- - rels/
- - document.rels.xml
- - media/
- - theme/
- - theme1.xml
- - document.xml
- - fontTable.xml
- - numbering.xml
- - settings.xml
- - styles.xml
- - webSettings.xml
-- [Content_Types].xml
-
-## OpenDocument
-
-### Package
-
-The package of OpenDocument document consists of the following files.
-
-- META-INF/
- - manifest.xml
-- Pictures/
-- content.xml
-- meta.xml
-- styles.xml
-
-### content.xml
-
-The structure of `content.xml` is described below.
-
-- office:document-content
- - office:font-facedecls
- - office:automatic-styles
- - office:body
- - office:text
- - draw:*
- - office:forms
- - table:table
- - text:list
- - text:numbered-paragraph
- - text:p
- - text:table-of-contents
- - text:section
- - office:chart
- - office:image
- - office:drawing
-
-### styles.xml
-
-The structure of `styles.xml` is described below.
-
-- office:document-styles
- - office:styles
- - office:automatic-styles
- - office:master-styles
- - office:master-page
-
-## RTF
-
-To be completed.
-
-## HTML
-
-To be completed.
-
-## PDF
-
-To be completed.
-
-# Recipes
-
-## Create float left image
-
-Use absolute positioning relative to margin horizontally and to line vertically.
-
-```php
-$imageStyle = array(
- 'width' => 40,
- 'height' => 40
- 'wrappingStyle' => 'square',
- 'positioning' => 'absolute',
- 'posHorizontalRel' => 'margin',
- 'posVerticalRel' => 'line',
-);
-$textrun->addImage('resources/_earth.jpg', $imageStyle);
-$textrun->addText($lipsumText);
-```
-
-## Download the produced file automatically
-
-Use `php://output` as the filename.
-
-```php
-$phpWord = new \PhpOffice\PhpWord\PhpWord();
-$section = $phpWord->createSection();
-$section->addText('Hello World!');
-$file = 'HelloWorld.docx';
-header("Content-Description: File Transfer");
-header('Content-Disposition: attachment; filename="' . $file . '"');
-header('Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document');
-header('Content-Transfer-Encoding: binary');
-header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
-header('Expires: 0');
-$xmlWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
-$xmlWriter->save("php://output");
-```
-
-## Create numbered headings
-
-Define a numbering style and title styles, and match the two styles (with `pStyle` and `numStyle`) like below.
-
-```php
-$phpWord->addNumberingStyle(
- 'hNum',
- array('type' => 'multilevel', 'levels' => array(
- array('pStyle' => 'Heading1', 'format' => 'decimal', 'text' => '%1'),
- array('pStyle' => 'Heading2', 'format' => 'decimal', 'text' => '%1.%2'),
- array('pStyle' => 'Heading3', 'format' => 'decimal', 'text' => '%1.%2.%3'),
- )
- )
-);
-$phpWord->addTitleStyle(1, array('size' => 16), array('numStyle' => 'hNum', 'numLevel' => 0));
-$phpWord->addTitleStyle(2, array('size' => 14), array('numStyle' => 'hNum', 'numLevel' => 1));
-$phpWord->addTitleStyle(3, array('size' => 12), array('numStyle' => 'hNum', 'numLevel' => 2));
-
-$section->addTitle('Heading 1', 1);
-$section->addTitle('Heading 2', 2);
-$section->addTitle('Heading 3', 3);
-```
-
-# Frequently asked questions
-
-## Is this the same with PHPWord that I found in CodePlex?
-
-No. This one is much better with tons of new features that you can’t find in PHPWord 0.6.3. The development in CodePlex is halted and switched to GitHub to allow more participation from the crowd. The more the merrier, right?
-
-## I’ve been running PHPWord from CodePlex flawlessly, but I can’t use the latest PHPWord from GitHub. Why?
-
-PHPWord requires PHP 5.3+ since 0.8, while PHPWord 0.6.3 from CodePlex can run with PHP 5.2. There’s a lot of new features that we can get from PHP 5.3 and it’s been around since 2009! You should upgrade your PHP version to use PHPWord 0.8+.
-
-# References
-
-## ISO/IEC 29500, Third edition, 2012-09-01
-
-- [Part 1: Fundamentals and Markup Language Reference](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061750_ISO_IEC_29500-1_2012.zip)
-- [Part 2: Open Packaging Conventions](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061796_ISO_IEC_29500-2_2012.zip)
-- [Part 3: Markup Compatibility and Extensibility](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061797_ISO_IEC_29500-3_2012.zip)
-- [Part 4: Transitional Migration Features](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061798_ISO_IEC_29500-4_2012.zip)
-
-## Formal specifications
-
-- [Oasis OpenDocument Standard Version 1.2](http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os.html)
-- [Rich Text Format (RTF) Specification, version 1.9.1](http://www.microsoft.com/en-us/download/details.aspx?id=10725)
-
-## Other resources
-
-- [DocumentFormat.OpenXml.Wordprocessing Namespace on MSDN](http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing%28v=office.14%29.aspx)
diff --git a/docs/templates.rst b/docs/templates.rst
deleted file mode 100644
index b1d9d205e1..0000000000
--- a/docs/templates.rst
+++ /dev/null
@@ -1,27 +0,0 @@
-.. _templates:
-
-Templates
-=========
-
-You can create a docx template with included search-patterns that can be
-replaced by any value you wish. Only single-line values can be replaced.
-To load a template file, use the ``loadTemplate`` method. After loading
-the docx template, you can use the ``setValue`` method to change the
-value of a search pattern. The search-pattern model is:
-``${search-pattern}``. It is not possible to add new PHPWord elements to
-a loaded template file.
-
-Example:
-
-.. code-block:: php
-
- $template = $phpWord->loadTemplate('Template.docx');
- $template->setValue('Name', 'Somebody someone');
- $template->setValue('Street', 'Coming-Undone-Street 32');
-
-See ``Sample_07_TemplateCloneRow.php`` for example on how to create
-multirow from a single row in a template by using ``cloneRow``.
-
-See ``Sample_23_TemplateBlock.php`` for example on how to clone a block
-of text using ``cloneBlock`` and delete a block of text using
-``deleteBlock``.
diff --git a/docs/usage/containers.md b/docs/usage/containers.md
new file mode 100644
index 0000000000..e85a700f48
--- /dev/null
+++ b/docs/usage/containers.md
@@ -0,0 +1,140 @@
+# Containers
+
+Containers are objects where you can put elements (texts, lists, tables, etc). There are 3 main containers, i.e. sections, headers, and footers.There are 3 elements that can also act as containers, i.e. textruns, table cells, and footnotes.
+
+## Sections
+
+Every visible element in word is placed inside of a section. To create a section, use the following code:
+
+``` php
+addSection($sectionStyle);
+```
+
+The ``$sectionStyle`` is an optional associative array that sets the section. Example:
+
+``` php
+ 'landscape',
+ 'marginTop' => 600,
+ 'colsNum' => 2,
+);
+```
+
+### Page number
+
+You can change a section page number by using the ``pageNumberingStart``
+style of the section.
+
+``` php
+addSection(array('pageNumberingStart' => 1));
+
+// Method 2
+$section = $phpWord->addSection();
+$section->getStyle()->setPageNumberingStart(1);
+```
+
+### Multicolumn
+
+You can change a section layout to multicolumn (like in a newspaper) by
+using the ``breakType`` and ``colsNum`` style of the section.
+
+``` php
+addSection(array('breakType' => 'continuous', 'colsNum' => 2));
+
+// Method 2
+$section = $phpWord->addSection();
+$section->getStyle()->setBreakType('continuous');
+$section->getStyle()->setColsNum(2);
+```
+
+### Line numbering
+
+You can apply line numbering to a section by using the ``lineNumbering``
+style of the section.
+
+``` php
+addSection(array('lineNumbering' => array()));
+
+// Method 2
+$section = $phpWord->addSection();
+$section->getStyle()->setLineNumbering(array());
+```
+
+Below are the properties of the line numbering style.
+
+- ``start`` Line numbering starting value
+- ``increment`` Line number increments
+- ``distance`` Distance between text and line numbering in *twip*
+- ``restart`` Line numbering restart setting
+ continuous\|newPage\|newSection
+
+## Headers
+
+Each section can have its own header reference. To create a header use
+the ``addHeader`` method:
+
+``` php
+addHeader();
+```
+
+Be sure to save the result in a local object. You can use all elements
+that are available for the footer. See "Footer" section for detail.
+Additionally, only inside of the header reference you can add watermarks
+or background pictures. See "Watermarks" section.
+
+You can pass an optional parameter to specify where the header/footer should be applied, it can be
+
+- ``Footer::AUTO`` default, all pages except if overridden by first or even
+- ``Footer::FIRST`` each first page of the section
+- ``Footer::EVEN`` each even page of the section. Will only be applied if the evenAndOddHeaders is set to true in phpWord->settings
+
+To change the evenAndOddHeaders use the ``getSettings`` method to return the Settings object, and then call the ``setEvenAndOddHeaders`` method:
+
+``` php
+getSettings()->setEvenAndOddHeaders(true);
+```
+
+## Footers
+
+Each section can have its own footer reference. To create a footer, use
+the ``addFooter`` method:
+
+``` php
+addFooter();
+```
+
+Be sure to save the result in a local object to add elements to a
+footer. You can add the following elements to footers:
+
+- Texts ``addText`` and ``createTextrun``
+- Text breaks
+- Images
+- Tables
+- Preserve text
+
+See the "Elements" section for the detail of each elements.
+
+### Other containers
+
+Textruns, table cells, and footnotes are elements that can also act as
+containers. See the corresponding "Elements" section for the detail of
+each elements.
diff --git a/docs/usage/elements/chart.md b/docs/usage/elements/chart.md
new file mode 100644
index 0000000000..d204425b18
--- /dev/null
+++ b/docs/usage/elements/chart.md
@@ -0,0 +1,15 @@
+# Chart
+
+Charts can be added using
+
+``` php
+addChart('line', $categories, $series, $style);
+```
+
+For available styling options, see [`Styles > Chart`](../styles/chart.md).
+
+Check out the Sample_32_Chart.php for more options and styling.
\ No newline at end of file
diff --git a/docs/usage/elements/checkbox.md b/docs/usage/elements/checkbox.md
new file mode 100644
index 0000000000..67c58163d1
--- /dev/null
+++ b/docs/usage/elements/checkbox.md
@@ -0,0 +1,14 @@
+# Checkbox
+
+Checkbox elements can be added to sections or table cells by using ``addCheckBox``.
+
+``` php
+addCheckBox($name, $text, [$fontStyle], [$paragraphStyle]);
+```
+
+- ``$name``. Name of the check box.
+- ``$text``. Text to be displayed in the document.
+- ``$fontStyle``. See [`Styles > Font`](../styles/font.md).
+- ``$paragraphStyle``. See [`Styles > Paragraph`](../styles/paragraph.md).
\ No newline at end of file
diff --git a/docs/usage/elements/comment.md b/docs/usage/elements/comment.md
new file mode 100644
index 0000000000..50813fa2a1
--- /dev/null
+++ b/docs/usage/elements/comment.md
@@ -0,0 +1,24 @@
+# Comment
+
+Comments can be added to a document by using ``addComment``.
+The comment can contain formatted text. Once the comment has been added, it can be linked to any element with ``setCommentRangeStart``.
+
+``` php
+addText('Test', array('bold' => true));
+
+// add it to the document
+$phpWord->addComment($comment);
+
+$textrun = $section->addTextRun();
+$textrun->addText('This ');
+$text = $textrun->addText('is');
+// link the comment to the text you just created
+$text->setCommentRangeStart($comment);
+$textrun->addText(' a test');
+```
+
+If no end is set for a comment using the ``setCommentRangeEnd``, the comment will be ended automatically at the end of the element it is started on.
\ No newline at end of file
diff --git a/docs/usage/elements/field.md b/docs/usage/elements/field.md
new file mode 100644
index 0000000000..1cafd18ef8
--- /dev/null
+++ b/docs/usage/elements/field.md
@@ -0,0 +1,49 @@
+# Field
+
+Currently the following fields are supported:
+
+- PAGE
+- NUMPAGES
+- DATE
+- XE
+- INDEX
+- FILENAME
+- REF
+
+``` php
+addField($fieldType, [$properties], [$options], [$fieldText], [$fontStyle])
+```
+
+- ``$fontStyle``. See [`Styles > Font`](../styles/font.md).
+
+See ``\PhpOffice\PhpWord\Element\Field`` for list of properties and options available for each field type.
+Options which are not specifically defined can be added. Those must start with a ``\``.
+
+For instance for the INDEX field, you can do the following (See `Index Field for list of available options `_ ):
+
+``` php
+addText('My ');
+$fieldText->addText('bold index', ['bold' => true]);
+$fieldText->addText(' entry');
+$section->addField('XE', array(), array(), $fieldText);
+
+// this actually adds the index
+$section->addField('INDEX', array(), array('\\e " " \\h "A" \\c "3"'), 'right click to update index');
+
+// Adding reference to a bookmark
+$fieldText->addField('REF', [
+ 'name' => 'bookmark'
+], [
+ 'InsertParagraphNumberRelativeContext',
+ 'CreateHyperLink',
+]);
+```
diff --git a/docs/usage/elements/formula.md b/docs/usage/elements/formula.md
new file mode 100644
index 0000000000..a114b73e38
--- /dev/null
+++ b/docs/usage/elements/formula.md
@@ -0,0 +1,21 @@
+# Formula
+
+Formula can be added using
+
+``` php
+setDenominator(new Element\Numeric(2))
+ ->setNumerator(new Element\Identifier('π'))
+;
+
+$math = new Math();
+$math->add($fraction);
+
+$formula = $section->addFormula($math);
+```
\ No newline at end of file
diff --git a/docs/usage/elements/image.md b/docs/usage/elements/image.md
new file mode 100644
index 0000000000..cb288bbf3d
--- /dev/null
+++ b/docs/usage/elements/image.md
@@ -0,0 +1,36 @@
+# Image
+
+To add an image, use the ``addImage`` method to sections, headers, footers, textruns, or table cells.
+
+``` php
+addImage($src, [$style]);
+```
+
+- ``$src``. String path to a local image, URL of a remote image or the image data, as a string. Warning: Do not pass user-generated strings here, as that would allow an attacker to read arbitrary files or perform server-side request forgery by passing file paths or URLs instead of image data.
+- ``$style``. See [`Styles > Image`](../styles/image.md).
+
+Examples:
+
+``` php
+addSection();
+$section->addImage(
+ 'mars.jpg',
+ array(
+ 'width' => 100,
+ 'height' => 100,
+ 'marginTop' => -1,
+ 'marginLeft' => -1,
+ 'wrappingStyle' => 'behind'
+ )
+);
+$footer = $section->addFooter();
+$footer->addImage('http://example.com/image.php');
+$textrun = $section->addTextRun();
+$textrun->addImage('http://php.net/logo.jpg');
+$source = file_get_contents('/path/to/my/images/earth.jpg');
+$textrun->addImage($source);
+```
\ No newline at end of file
diff --git a/docs/usage/elements/index.md b/docs/usage/elements/index.md
new file mode 100644
index 0000000000..6106c8914b
--- /dev/null
+++ b/docs/usage/elements/index.md
@@ -0,0 +1,34 @@
+# Elements
+
+Below are the matrix of element availability in each container. The column shows the containers while the rows lists the elements.
+
+| Num | Element | Section | Header | Footer | Cell | Text Run | Footnote |
+|-------|-----------------|-----------|----------|----------|---------|------------|------------|
+| 1 | [Text](text.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| 2 | Text Run | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :red_circle: | :red_circle: |
+| 3 | [Link](link.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| 4 | [Title](title.md) | :white_check_mark: | :question: | :question: | :question: | :question: | :question: |
+| 5 | [Preserve Text](preservetext.md) | :question: | :white_check_mark: | :white_check_mark: | :material-check-decagram-outline: | :red_circle: | :red_circle: |
+| 6 | [Text Break](textbreak.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| 7 | [Page Break](pagebreak.md) | :white_check_mark: | :red_circle: | :red_circle: | :red_circle: | :red_circle: | :red_circle: |
+| 8 | [List](list.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :red_circle: | :red_circle: |
+| 9 | [Table](table.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :red_circle: | :red_circle: |
+| 10 | [Image](image.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| 11 | [Watermark](watermark.md) | :red_circle: | :white_check_mark: | :red_circle: | :red_circle: | :red_circle: | :red_circle: |
+| 12 | [OLEObject](oleobject.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| 13 | [TOC](toc.md) | :white_check_mark: | :red_circle: | :red_circle: | :red_circle: | :red_circle: | :red_circle: |
+| 14 | [Footnote](note.md) | :white_check_mark: | :red_circle: | :red_circle: | :material-check-decagram: | :material-check-decagram: | :red_circle: |
+| 15 | [Endnote](note.md) | :white_check_mark: | :red_circle: | :red_circle: | :material-check-decagram: | :material-check-decagram: | :red_circle: |
+| 16 | [CheckBox](checkbox.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :red_circle: |
+| 17 | [TextBox](textbox.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :red_circle: | :red_circle: |
+| 18 | [Field](field.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| 19 | [Line](line.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| 20 | [Chart](chart.md) | :white_check_mark: | | | :white_check_mark: | | |
+
+Legend:
+
+- :white_check_mark: : Available.
+- :material-check-decagram-outline: : Available only when inside header/footer.
+- :material-check-decagram: : Available only when inside section.
+- :red_circle: : Not available.
+- :question: : Should be available.
\ No newline at end of file
diff --git a/docs/usage/elements/line.md b/docs/usage/elements/line.md
new file mode 100644
index 0000000000..7062f884da
--- /dev/null
+++ b/docs/usage/elements/line.md
@@ -0,0 +1,21 @@
+# Line
+
+Line elements can be added to sections by using ``addLine``.
+
+``` php
+ 1, 'width' => 100, 'height' => 0, 'color' => 635552);
+$section->addLine($lineStyle);
+```
+
+Available line style attributes:
+
+- ``weight``. Line width in *twip*.
+- ``color``. Defines the color of stroke.
+- ``dash``. Line types: dash, rounddot, squaredot, dashdot, longdash, longdashdot, longdashdotdot.
+- ``beginArrow``. Start type of arrow: block, open, classic, diamond, oval.
+- ``endArrow``. End type of arrow: block, open, classic, diamond, oval.
+- ``width``. Line-object width in *pt*.
+- ``height``. Line-object height in *pt*.
+- ``flip``. Flip the line element: true, false.
\ No newline at end of file
diff --git a/docs/usage/elements/link.md b/docs/usage/elements/link.md
new file mode 100644
index 0000000000..0719c1c018
--- /dev/null
+++ b/docs/usage/elements/link.md
@@ -0,0 +1,14 @@
+# Link
+
+You can add Hyperlinks to the document by using the function addLink:
+
+``` php
+addLink($linkSrc, [$linkName], [$fontStyle], [$paragraphStyle]);
+```
+
+- ``$linkSrc``. The URL of the link.
+- ``$linkName``. Placeholder of the URL that appears in the document.
+- ``$fontStyle``. See [`Styles > Font`](../styles/font.md).
+- ``$paragraphStyle``. See [`Styles > Paragraph`](../styles/paragraph.md).
\ No newline at end of file
diff --git a/docs/usage/elements/list.md b/docs/usage/elements/list.md
new file mode 100644
index 0000000000..4b51cd8634
--- /dev/null
+++ b/docs/usage/elements/list.md
@@ -0,0 +1,48 @@
+# List
+
+Lists can be added by using ``addListItem`` and ``addListItemRun`` methods. ``addListItem`` is used for creating lists that only contain plain text. ``addListItemRun`` is used for creating complex list items that contains texts with different style (some bold, other italics, etc) or other elements, e.g. images or links. The syntaxes are as follow:
+
+Basic usage:
+
+``` php
+addListItem($text, [$depth], [$fontStyle], [$listStyle], [$paragraphStyle]);
+$listItemRun = $section->addListItemRun([$depth], [$listStyle], [$paragraphStyle])
+```
+
+Parameters:
+
+- ``$text``. Text that appears in the document.
+- ``$depth``. Depth of list item.
+- ``$fontStyle``. See [`Styles > Font`](../styles/font.md)..
+- ``$listStyle``. List style of the current element TYPE\_NUMBER,
+ TYPE\_ALPHANUM, TYPE\_BULLET\_FILLED, etc. See list of constants in PHPWord\\Style\\ListItem.
+- ``$paragraphStyle``. See [`Styles > Paragraph`](../styles/paragraph.md)..
+
+See ``Sample_14_ListItem.php`` for more code sample.
+
+Advanced usage:
+
+You can also create your own numbering style by changing the ``$listStyle`` parameter with the name of your numbering style.
+
+``` php
+addNumberingStyle(
+ 'multilevel',
+ array(
+ 'type' => 'multilevel',
+ 'levels' => array(
+ array('format' => 'decimal', 'text' => '%1.', 'left' => 360, 'hanging' => 360, 'tabPos' => 360),
+ array('format' => 'upperLetter', 'text' => '%2.', 'left' => 720, 'hanging' => 360, 'tabPos' => 720),
+ )
+ )
+);
+$section->addListItem('List Item I', 0, null, 'multilevel');
+$section->addListItem('List Item I.a', 1, null, 'multilevel');
+$section->addListItem('List Item I.b', 1, null, 'multilevel');
+$section->addListItem('List Item II', 0, null, 'multilevel');
+```
+
+For available styling options see [`Styles > Numbering Level`](../styles/numberinglevel.md).
\ No newline at end of file
diff --git a/docs/usage/elements/note.md b/docs/usage/elements/note.md
new file mode 100644
index 0000000000..69a1947357
--- /dev/null
+++ b/docs/usage/elements/note.md
@@ -0,0 +1,54 @@
+# Footnote & Endnote
+
+You can create footnotes with ``addFootnote`` and endnotes with``addEndnote`` in texts or textruns, but it's recommended to use textrun to have better layout. You can use ``addText``, ``addLink``,``addTextBreak``, ``addImage``, ``addOLEObject`` on footnotes and endnotes.
+
+On textrun:
+
+``` php
+addTextRun();
+$textrun->addText('Lead text.');
+$footnote = $textrun->addFootnote();
+$footnote->addText('Footnote text can have ');
+$footnote->addLink('http://test.com', 'links');
+$footnote->addText('.');
+$footnote->addTextBreak();
+$footnote->addText('And text break.');
+$textrun->addText('Trailing text.');
+$endnote = $textrun->addEndnote();
+$endnote->addText('Endnote put at the end');
+```
+
+On text:
+
+``` php
+addText('Lead text.');
+$footnote = $section->addFootnote();
+$footnote->addText('Footnote text.');
+```
+
+By default the footnote reference number will be displayed with decimal number
+starting from 1. This number uses the ``FooterReference`` style which you can
+redefine with the ``addFontStyle`` method. Default value for this style is
+``array('superScript' => true)``;
+
+The footnote numbering can be controlled by setting the FootnoteProperties on the Section.
+
+``` php
+setPos(\PhpOffice\PhpWord\ComplexType\FootnoteProperties::POSITION_BENEATH_TEXT);
+//set the number format to use (decimal (default), upperRoman, upperLetter, ...)
+$fp->setNumFmt(\PhpOffice\PhpWord\SimpleType\NumberFormat::LOWER_ROMAN);
+//force starting at other than 1
+$fp->setNumStart(2);
+//when to restart counting (continuous (default), eachSect, eachPage)
+$fp->setNumRestart(\PhpOffice\PhpWord\ComplexType\FootnoteProperties::RESTART_NUMBER_EACH_PAGE);
+//And finaly, set it on the Section
+$section->setFootnoteProperties($fp);
+```
\ No newline at end of file
diff --git a/docs/usage/elements/oleobject.md b/docs/usage/elements/oleobject.md
new file mode 100644
index 0000000000..ebee5fbafa
--- /dev/null
+++ b/docs/usage/elements/oleobject.md
@@ -0,0 +1,9 @@
+# Object
+
+You can add OLE embeddings, such as Excel spreadsheets or PowerPoint presentations to the document by using ``addOLEObject`` method.
+
+``` php
+addOLEObject($src, [$style]);
+```
\ No newline at end of file
diff --git a/docs/usage/elements/pagebreak.md b/docs/usage/elements/pagebreak.md
new file mode 100644
index 0000000000..12f0fad57b
--- /dev/null
+++ b/docs/usage/elements/pagebreak.md
@@ -0,0 +1,9 @@
+# Page breaks
+
+There are two ways to insert a page break, using the ``addPageBreak`` method or using the ``pageBreakBefore`` style of paragraph.
+
+``` php
+addPageBreak();
+```
\ No newline at end of file
diff --git a/docs/usage/elements/preservetext.md b/docs/usage/elements/preservetext.md
new file mode 100644
index 0000000000..67a9cb0920
--- /dev/null
+++ b/docs/usage/elements/preservetext.md
@@ -0,0 +1,9 @@
+# Preserve text
+
+The ``addPreserveText`` method is used to add a page number or page count to headers or footers.
+
+``` php
+addPreserveText('Page {PAGE} of {NUMPAGES}.');
+```
\ No newline at end of file
diff --git a/docs/usage/elements/ruby.md b/docs/usage/elements/ruby.md
new file mode 100644
index 0000000000..508b97cd84
--- /dev/null
+++ b/docs/usage/elements/ruby.md
@@ -0,0 +1,57 @@
+# Ruby
+
+Ruby (phonetic guide) text can be added by using the ``addRuby`` method. Ruby elements require a ``RubyProperties`` object, a ``TextRun`` for the base text, and a ``TextRun`` for the actual ruby (phonetic guide) text.
+
+Here is one example for a complete ruby element setup:
+
+``` php
+addSection();
+$properties = new RubyProperties();
+$properties->setAlignment(RubyProperties::ALIGNMENT_RIGHT_VERTICAL);
+$properties->setFontFaceSize(10);
+$properties->setFontPointsAboveBaseText(4);
+$properties->setFontSizeForBaseText(18);
+$properties->setLanguageId('ja-JP');
+
+$baseTextRun = new TextRun(null);
+$baseTextRun->addText('私');
+$rubyTextRun = new TextRun(null);
+$rubyTextRun->addText('わたし');
+
+$section->addRuby($baseTextRun, $rubyTextRun, $properties);
+```
+
+- ``$baseTextRun``. ``TextRun`` to be used for the base text.
+- ``$rubyTextRun``. ``TextRun`` to be used for the ruby text.
+- ``$properties``. ``RubyProperties`` properties object for the ruby text.
+
+A title with a phonetic guide is a little more complex, but still possible. Make sure you add the appropraite title style to your document.
+
+```php
+$phpWord = new PhpWord();
+$fontStyle = new Font();
+$fontStyle->setAllCaps(true);
+$fontStyle->setBold(true);
+$fontStyle->setSize(24);
+$phpWord->addTitleStyle(1, ['name' => 'Arial', 'size' => 24, 'bold' => true, 'color' => '990000']);
+
+$section = $phpWord->addSection();
+$properties = new RubyProperties();
+$properties->setAlignment(RubyProperties::ALIGNMENT_RIGHT_VERTICAL);
+$properties->setFontFaceSize(10);
+$properties->setFontPointsAboveBaseText(4);
+$properties->setFontSizeForBaseText(18);
+$properties->setLanguageId('ja-JP');
+
+$baseTextRun = new TextRun(null);
+$baseTextRun->addText('私');
+$rubyTextRun = new TextRun(null);
+$rubyTextRun->addText('わたし');
+
+$textRun = new TextRun();
+$textRun->addRuby($baseTextRun, $rubyTextRun, $properties);
+$section->addTitle($textRun, 1);
+```
\ No newline at end of file
diff --git a/docs/usage/elements/table.md b/docs/usage/elements/table.md
new file mode 100644
index 0000000000..04b06429e7
--- /dev/null
+++ b/docs/usage/elements/table.md
@@ -0,0 +1,41 @@
+# Table
+
+To add tables, rows, and cells, use the ``addTable``, ``addRow``, and ``addCell`` methods:
+
+``` php
+addTable([$tableStyle]);
+$table->addRow([$height], [$rowStyle]);
+$cell = $table->addCell($width, [$cellStyle]);
+```
+
+Table style can be defined with ``addTableStyle``:
+
+``` php
+ '006699',
+ 'borderSize' => 6,
+ 'cellMargin' => 50
+);
+$firstRowStyle = array('bgColor' => '66BBFF');
+$phpWord->addTableStyle('myTable', $tableStyle, $firstRowStyle);
+$table = $section->addTable('myTable');
+```
+
+For available styling options see [`Styles > Table`](../styles/table.md).
+
+## Cell span
+
+You can span a cell on multiple columns by using ``gridSpan`` or multiple rows by using ``vMerge``.
+
+``` php
+addCell(200);
+$cell->getStyle()->setGridSpan(5);
+```
+
+See ``Sample_09_Tables.php`` for more code sample.
\ No newline at end of file
diff --git a/docs/usage/elements/text.md b/docs/usage/elements/text.md
new file mode 100644
index 0000000000..41984be095
--- /dev/null
+++ b/docs/usage/elements/text.md
@@ -0,0 +1,26 @@
+# Text
+
+
+Text can be added by using ``addText`` and ``addTextRun`` methods. ``addText`` is used for creating simple paragraphs that only contain texts with the same style. ``addTextRun`` is used for creating complex paragraphs that contain text with different style (some bold, other italics, etc) or other elements, e.g. images or links. The syntaxes are as follow:
+
+``` php
+addText($text, [$fontStyle], [$paragraphStyle]);
+$textrun = $section->addTextRun([$paragraphStyle]);
+```
+
+- ``$text``. Text to be displayed in the document.
+- ``$fontStyle``. See [`Styles > Font`](../styles/font.md).
+- ``$paragraphStyle``. See [`Styles > Paragraph`](../styles/paragraph.md).
+
+For available styling options, see [`Styles > Font`](../styles/font.md) and [`Styles > Paragraph`](../styles/paragraph.md).
+
+If you want to enable track changes on added text you can mark it as INSERTED or DELETED by a specific user at a given time:
+
+``` php
+addText('Hello World!');
+$text->setChanged(\PhpOffice\PhpWord\Element\ChangedElement::TYPE_INSERTED, 'Fred', (new \DateTime()));
+```
\ No newline at end of file
diff --git a/docs/usage/elements/textbox.md b/docs/usage/elements/textbox.md
new file mode 100644
index 0000000000..9341cdcbd9
--- /dev/null
+++ b/docs/usage/elements/textbox.md
@@ -0,0 +1,3 @@
+# TextBox
+
+To Be Completed...
\ No newline at end of file
diff --git a/docs/usage/elements/textbreak.md b/docs/usage/elements/textbreak.md
new file mode 100644
index 0000000000..1937101cc8
--- /dev/null
+++ b/docs/usage/elements/textbreak.md
@@ -0,0 +1,13 @@
+# Text breaks
+
+Text breaks are empty new lines. To add text breaks, use the following syntax. All parameters are optional.
+
+``` php
+addTextBreak([$breakCount], [$fontStyle], [$paragraphStyle]);
+```
+
+- ``$breakCount``. How many lines.
+- ``$fontStyle``. See [`Styles > Font`](../styles/font.md).
+- ``$paragraphStyle``. See [`Styles > Paragraph`](../styles/paragraph.md).
\ No newline at end of file
diff --git a/docs/usage/elements/title.md b/docs/usage/elements/title.md
new file mode 100644
index 0000000000..fba78ef645
--- /dev/null
+++ b/docs/usage/elements/title.md
@@ -0,0 +1,24 @@
+# Title
+
+If you want to structure your document or build table of contents, you need titles or headings.
+To add a title to the document, use the ``addTitleStyle`` and ``addTitle`` method.
+If `depth` is 0, a Title will be inserted, otherwise a Heading1, Heading2, ...
+
+``` php
+addTitleStyle($depth, [$fontStyle], [$paragraphStyle]);
+$section->addTitle($text, $depth, $pageNumber);
+```
+
+`addTitleStyle` :
+- ``$depth``
+- ``$fontStyle``: See [`Styles > Font`](../styles/font.md).
+- ``$paragraphStyle``: See [`Styles > Paragraph`](../styles/paragraph.md).
+
+`addTitle` :
+- ``$text``. Text to be displayed in the document. This can be `string` or a `\PhpOffice\PhpWord\Element\TextRun`
+- ``$depth``
+- ``$pageNumber`` : Number of the page
+
+It's necessary to add a title style to your document because otherwise the title won't be detected as a real title.
\ No newline at end of file
diff --git a/docs/usage/elements/toc.md b/docs/usage/elements/toc.md
new file mode 100644
index 0000000000..d7b05c2e96
--- /dev/null
+++ b/docs/usage/elements/toc.md
@@ -0,0 +1,21 @@
+# Table of contents
+
+To add a table of contents (TOC), you can use the ``addTOC`` method.
+Your TOC can only be generated if you have add at least one title (See "[Title](title.md)").
+
+``` php
+addTOC([$fontStyle], [$tocStyle], [$minDepth], [$maxDepth]);
+```
+
+- ``$fontStyle``. See font style section.
+- ``$tocStyle``. See available options below.
+- ``$minDepth``. Minimum depth of header to be shown. Default 1.
+- ``$maxDepth``. Maximum depth of header to be shown. Default 9.
+
+Options for ``$tocStyle``:
+
+- ``tabLeader``. Fill type between the title text and the page number. Use the defined constants in ``\PhpOffice\PhpWord\Style\TOC``.
+- ``tabPos``. The position of the tab where the page number appears in *twip*.
+- ``indent``. The indent factor of the titles in *twip*.
\ No newline at end of file
diff --git a/docs/usage/elements/trackchanges.md b/docs/usage/elements/trackchanges.md
new file mode 100644
index 0000000000..70cd312543
--- /dev/null
+++ b/docs/usage/elements/trackchanges.md
@@ -0,0 +1,25 @@
+# Track Changes
+
+Track changes can be set on text elements. There are 2 ways to set the change information on an element.
+Either by calling the `setChangeInfo()`, or by setting the `TrackChange` instance on the element with `setTrackChange()`.
+
+``` php
+addSection();
+$textRun = $section->addTextRun();
+
+$text = $textRun->addText('Hello World! Time to ');
+
+$text = $textRun->addText('wake ', array('bold' => true));
+$text->setChangeInfo(TrackChange::INSERTED, 'Fred', time() - 1800);
+
+$text = $textRun->addText('up');
+$text->setTrackChange(new TrackChange(TrackChange::INSERTED, 'Fred'));
+
+$text = $textRun->addText('go to sleep');
+$text->setChangeInfo(TrackChange::DELETED, 'Barney', new \DateTime('@' . (time() - 3600)));
+```
\ No newline at end of file
diff --git a/docs/usage/elements/watermark.md b/docs/usage/elements/watermark.md
new file mode 100644
index 0000000000..0b2bae6bf0
--- /dev/null
+++ b/docs/usage/elements/watermark.md
@@ -0,0 +1,13 @@
+# Watermark
+
+To add a watermark (or page background image), your section needs a
+header reference. After creating a header, you can use the
+``addWatermark`` method to add a watermark.
+
+``` php
+addSection();
+$header = $section->addHeader();
+$header->addWatermark('resources/_earth.jpg', array('marginTop' => 200, 'marginLeft' => 55));
+```
\ No newline at end of file
diff --git a/docs/usage/introduction.md b/docs/usage/introduction.md
new file mode 100644
index 0000000000..19d6aff51f
--- /dev/null
+++ b/docs/usage/introduction.md
@@ -0,0 +1,392 @@
+# Introduction
+
+## Basic example
+
+The following is a basic example of the PHPWord library. More examples
+are provided in the [samples folder](https://github.com/PHPOffice/PHPWord/tree/master/samples/).
+
+``` php
+addSection();
+// Adding Text element to the Section having font styled by default...
+$section->addText(
+ '"Learn from yesterday, live for today, hope for tomorrow. '
+ . 'The important thing is not to stop questioning." '
+ . '(Albert Einstein)'
+);
+
+/*
+ * Note: it's possible to customize font style of the Text element you add in three ways:
+ * - inline;
+ * - using named font style (new font style object will be implicitly created);
+ * - using explicitly created font style object.
+ */
+
+// Adding Text element with font customized inline...
+$section->addText(
+ '"Great achievement is usually born of great sacrifice, '
+ . 'and is never the result of selfishness." '
+ . '(Napoleon Hill)',
+ array('name' => 'Tahoma', 'size' => 10)
+);
+
+// Adding Text element with font customized using named font style...
+$fontStyleName = 'oneUserDefinedStyle';
+$phpWord->addFontStyle(
+ $fontStyleName,
+ array('name' => 'Tahoma', 'size' => 10, 'color' => '1B2232', 'bold' => true)
+);
+$section->addText(
+ '"The greatest accomplishment is not in never falling, '
+ . 'but in rising again after you fall." '
+ . '(Vince Lombardi)',
+ $fontStyleName
+);
+
+// Adding Text element with font customized using explicitly created font style object...
+$fontStyle = new \PhpOffice\PhpWord\Style\Font();
+$fontStyle->setBold(true);
+$fontStyle->setName('Tahoma');
+$fontStyle->setSize(13);
+$myTextElement = $section->addText('"Believe you can and you\'re halfway there." (Theodor Roosevelt)');
+$myTextElement->setFontStyle($fontStyle);
+
+// Saving the document as OOXML file...
+$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
+$objWriter->save('helloWorld.docx');
+
+// Saving the document as ODF file...
+$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'ODText');
+$objWriter->save('helloWorld.odt');
+
+// Saving the document as HTML file...
+$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'HTML');
+$objWriter->save('helloWorld.html');
+
+/* Note: we skip RTF, because it's not XML-based and requires a different example. */
+/* Note: we skip PDF, because "HTML-to-PDF" approach is used to create PDF documents. */
+```
+
+## PHPWord Settings
+
+The ``PhpOffice\PhpWord\Settings`` class provides some options that will
+affect the behavior of PHPWord. Below are the options.
+
+### XML Writer compatibility
+
+This option sets [XMLWriter::setIndent](http://www.php.net/manual/en/function.xmlwriter-set-indent.php) and [XMLWriter::setIndentString](http://www.php.net/manual/en/function.xmlwriter-set-indent-string.php>). The default value of this option is ``true`` (compatible), which is [required for OpenOffice](https://github.com/PHPOffice/PHPWord/issues/103) to render OOXML document correctly. You can set this option to ``false`` during development to make the resulting XML file easier to read.
+
+``` php
+setDefaultFontName('Times New Roman');
+$phpWord->setDefaultFontColor('FF0000');
+$phpWord->setDefaultFontSize(12);
+```
+
+Or you can specify Asian Font
+
+``` php
+setDefaultAsianFontName('標楷體');
+```
+
+## Document settings
+
+Settings for the generated document can be set using ``$phpWord->getSettings()``
+
+### Magnification Setting
+
+The default zoom value is 100 percent. This can be changed either to another percentage
+
+``` php
+getSettings()->setZoom(75);
+```
+
+Or to predefined values ``fullPage``, ``bestFit``, ``textFit``
+
+``` php
+getSettings()->setZoom(Zoom::BEST_FIT);
+```
+
+### Mirroring the Page Margins
+
+Use mirror margins to set up facing pages for double-sided documents, such as books or magazines.
+
+``` php
+getSettings()->setMirrorMargins(true);
+```
+
+!!! note annotate "Don't forget to set both paper size and page size"
+
+ For example, to print a document on A4 paper (landscape) and fold it into A5 pages (portrait), use this section style:
+
+ ``` php
+ getSettings()->setMirrorMargins(true);
+ $phpWord->addSection([
+ 'paperSize' => 'A4',
+ 'orientation' => 'landscape',
+ 'pageSizeW' => Converter::cmToTwip(14.85),
+ 'pageSizeH' => Converter::cmToTwip(21),
+ ]);
+ ```
+
+### Printing as folded booklet
+
+Use book-fold printing to set up documents to be printed as foldable pages.
+
+``` php
+getSettings()->setBookFoldPrinting(true);
+```
+
+### Spelling and grammatical checks
+
+By default spelling and grammatical errors are shown as soon as you open a word document.
+For big documents this can slow down the opening of the document. You can hide the spelling and/or grammatical errors with:
+
+``` php
+getSettings()->setHideGrammaticalErrors(true);
+$phpWord->getSettings()->setHideSpellingErrors(true);
+```
+
+You can also specify the status of the spell and grammar checks, marking spelling or grammar as dirty will force a re-check when opening the document.
+
+``` php
+setGrammar(\PhpOffice\PhpWord\ComplexType\ProofState::CLEAN);
+$proofState->setSpelling(\PhpOffice\PhpWord\ComplexType\ProofState::DIRTY);
+
+$phpWord->getSettings()->setProofState($proofState);
+```
+
+### Track Revisions
+
+Track changes can be activated using ``setTrackRevisions``, you can furture specify
+
+- Not to use move syntax, instead moved items will be seen as deleted in one place and added in another
+- Not track formatting revisions
+
+``` php
+getSettings()->setTrackRevisions(true);
+$phpWord->getSettings()->setDoNotTrackMoves(true);
+$phpWord->getSettings()->setDoNotTrackFormatting(true);
+```
+
+### Decimal Symbol
+
+The default symbol to represent a decimal figure is the ``.`` in english. In french you might want to change it to ``,`` for instance.
+
+``` php
+getSettings()->setDecimalSymbol(',');
+```
+
+### Document Language
+
+The default language of the document can be change with the following.
+
+``` php
+getSettings()->setThemeFontLang(new Language(Language::FR_BE));
+```
+
+``Language`` has 3 parameters, one for Latin languages, one for East Asian languages and one for Complex (Bi-Directional) languages.
+A couple of language codes are provided in the ``PhpOffice\PhpWord\Style\Language`` class but any valid code/ID can be used.
+
+In case you are generating an RTF document the language need to be set differently.
+
+``` php
+setLangId(Language::EN_GB_ID);
+$phpWord->getSettings()->setThemeFontLang($lang);
+```
+
+## Document information
+
+You can set the document information such as title, creator, and company
+name. Use the following functions:
+
+``` php
+getDocInfo();
+$properties->setCreator('My name');
+$properties->setCompany('My factory');
+$properties->setTitle('My title');
+$properties->setDescription('My description');
+$properties->setCategory('My category');
+$properties->setLastModifiedBy('My name');
+$properties->setCreated(mktime(0, 0, 0, 3, 12, 2014));
+$properties->setModified(mktime(0, 0, 0, 3, 14, 2014));
+$properties->setSubject('My subject');
+$properties->setKeywords('my, key, word');
+```
+
+## Measurement units
+
+The base length unit in Open Office XML is twip. Twip means "TWentieth
+of an Inch Point", i.e. 1 twip = 1/1440 inch.
+
+You can use PHPWord helper functions to convert inches, centimeters, or
+points to twip.
+
+``` php
+addParagraphStyle('My Style', array(
+ 'spaceAfter' => \PhpOffice\PhpWord\Shared\Converter::pointToTwip(6))
+);
+
+$section = $phpWord->addSection();
+$sectionStyle = $section->getStyle();
+// half inch left margin
+$sectionStyle->setMarginLeft(\PhpOffice\PhpWord\Shared\Converter::inchToTwip(.5));
+// 2 cm right margin
+$sectionStyle->setMarginRight(\PhpOffice\PhpWord\Shared\Converter::cmToTwip(2));
+```
+
+## Document protection
+
+The document (or parts of it) can be password protected.
+
+``` php
+getSettings()->getDocumentProtection();
+$documentProtection->setEditing(DocProtect::READ_ONLY);
+$documentProtection->setPassword('myPassword');
+```
+
+## Automatically Recalculate Fields on Open
+
+To force an update of the fields present in the document, set updateFields to true
+
+``` php
+getSettings()->setUpdateFields(true);
+```
+
+## Hyphenation
+
+Hyphenation describes the process of breaking words with hyphens. There are several options to control hyphenation.
+
+### Auto hyphenation
+
+To automatically hyphenate text set ``autoHyphenation`` to ``true``.
+
+``` php
+getSettings()->setAutoHyphenation(true);
+```
+
+### Consecutive Hyphen Limit
+
+The maximum number of consecutive lines of text ending with a hyphen can be controlled by the ``consecutiveHyphenLimit`` option.
+There is no limit if the option is not set or the provided value is ``0``.
+
+``` php
+getSettings()->setConsecutiveHyphenLimit(2);
+```
+
+### Hyphenation Zone
+
+The hyphenation zone (in *twip*) is the allowed amount of whitespace before hyphenation is applied.
+The smaller the hyphenation zone the more words are hyphenated. Or in other words, the wider the hyphenation zone the less words are hyphenated.
+
+``` php
+getSettings()->setHyphenationZone(\PhpOffice\PhpWord\Shared\Converter::cmToTwip(1));
+```
+
+### Hyphenate Caps
+
+To control whether or not words in all capital letters shall be hyphenated use the `doNotHyphenateCaps` option.
+
+``` php
+getSettings()->setDoNotHyphenateCaps(true);
+```
diff --git a/docs/usage/readers.md b/docs/usage/readers.md
new file mode 100644
index 0000000000..9cd9c1c4d6
--- /dev/null
+++ b/docs/usage/readers.md
@@ -0,0 +1,51 @@
+# Readers
+
+## HTML
+The name of the reader is `HTML`.
+
+``` php
+load(__DIR__ . '/sample.html');
+```
+
+## MsDoc
+The name of the reader is `MsDoc`.
+
+``` php
+load(__DIR__ . '/sample.doc');
+```
+
+## ODText
+The name of the reader is `ODText`.
+
+``` php
+load(__DIR__ . '/sample.odt');
+```
+
+## RTF
+The name of the reader is `RTF`.
+
+``` php
+load(__DIR__ . '/sample.rtf');
+```
+
+## Word2007
+The name of the reader is `Word2007`.
+
+``` php
+load(__DIR__ . '/sample.docx');
+```
\ No newline at end of file
diff --git a/docs/usage/styles/chart.md b/docs/usage/styles/chart.md
new file mode 100644
index 0000000000..f297718d24
--- /dev/null
+++ b/docs/usage/styles/chart.md
@@ -0,0 +1,19 @@
+# Chart
+
+Available Chart style options:
+
+- ``width``. Width (in EMU).
+- ``height``. Height (in EMU).
+- ``3d``. Is 3D; applies to pie, bar, line, area, *true* or *false*.
+- ``colors``. A list of colors to use in the chart.
+- ``title``. The title for the chart.
+- ``showLegend``. Show legend, *true* or *false*.
+- ``LegendPosition``. Legend position, *r* (default), *b*, *t*, *l* or *tr*.
+- ``categoryLabelPosition``. Label position for categories, *nextTo* (default), *low* or *high*.
+- ``valueLabelPosition``. Label position for values, *nextTo* (default), *low* or *high*.
+- ``categoryAxisTitle``. The title for the category axis.
+- ``valueAxisTitle``. The title for the values axis.
+- ``majorTickMarkPos``. The position for major tick marks, *in*, *out*, *cross*, *none* (default).
+- ``showAxisLabels``. Show labels for axis, *true* or *false*.
+- ``gridX``. Show Gridlines for X-Axis, *true* or *false*.
+- ``gridY``. Show Gridlines for Y-Axis, *true* or *false*.
\ No newline at end of file
diff --git a/docs/usage/styles/font.md b/docs/usage/styles/font.md
new file mode 100644
index 0000000000..921dc7fd85
--- /dev/null
+++ b/docs/usage/styles/font.md
@@ -0,0 +1,28 @@
+# Font
+
+Available Font style options:
+
+- ``allCaps``. All caps, *true* or *false*.
+- ``bgColor``. Font background color, e.g. *FF0000*.
+- ``bold``. Bold, *true* or *false*.
+- ``color``. Font color, e.g. *FF0000*.
+- ``doubleStrikethrough``. Double strikethrough, *true* or *false*.
+- ``fgColor``. Font highlight color, e.g. *yellow*, *green*, *blue*.
+ See ``\PhpOffice\PhpWord\Style\Font::FGCOLOR_...`` class constants for possible values
+- ``hint``. Font content type, *default*, *eastAsia*, or *cs*.
+- ``italic``. Italic, *true* or *false*.
+- ``name``. Font name, e.g. *Arial*.
+- ``rtl``. Right to Left language, *true* or *false*.
+- ``size``. Font size, e.g. *20*, *22*.
+- ``smallCaps``. Small caps, *true* or *false*.
+- ``strikethrough``. Strikethrough, *true* or *false*.
+- ``subScript``. Subscript, *true* or *false*.
+- ``superScript``. Superscript, *true* or *false*.
+- ``underline``. Underline, *single*, *dash*, *dotted*, etc.
+ See ``\PhpOffice\PhpWord\Style\Font::UNDERLINE_...`` class constants for possible values
+- ``lang``. Language, either a language code like *en-US*, *fr-BE*, etc. or an object (or as an array) if you need to set eastAsian or bidirectional languages
+ See ``\PhpOffice\PhpWord\Style\Language`` class for some language codes.
+- ``position``. The text position, raised or lowered, in half points
+- ``hidden``. Hidden text, *true* or *false*.
+- ``whiteSpace``. How white space is handled when generating html/pdf. Possible values are *pre-wrap* and *normal* (other css values for white space are accepted, but are not expected to be useful).
+- ``fallbackFont``. Fallback generic font for html/pdf. Possible values are *sans-serif*, *serif*, and *monospace* (other css values for generic fonts are accepted).
diff --git a/docs/usage/styles/image.md b/docs/usage/styles/image.md
new file mode 100644
index 0000000000..b6c4ddf936
--- /dev/null
+++ b/docs/usage/styles/image.md
@@ -0,0 +1,14 @@
+# Image
+
+Available Image style options:
+
+- ``alignment``. See ``\PhpOffice\PhpWord\SimpleType\Jc`` class for the details.
+- ``height``. Height in *pt*.
+- ``marginLeft``. Left margin in inches, can be negative.
+- ``marginTop``. Top margin in inches, can be negative.
+- ``width``. Width in *pt*.
+- ``wrappingStyle``. Wrapping style, *inline*, *square*, *tight*, *behind*, or *infront*.
+- ``wrapDistanceTop``. Top text wrapping in pixels.
+- ``wrapDistanceBottom``. Bottom text wrapping in pixels.
+- ``wrapDistanceLeft``. Left text wrapping in pixels.
+- ``wrapDistanceRight``. Right text wrapping in pixels.
\ No newline at end of file
diff --git a/docs/usage/styles/numberinglevel.md b/docs/usage/styles/numberinglevel.md
new file mode 100644
index 0000000000..392e820048
--- /dev/null
+++ b/docs/usage/styles/numberinglevel.md
@@ -0,0 +1,16 @@
+# Numbering level
+
+Available NumberingLevel style options:
+
+- ``alignment``. Supports all alignment modes since 1st Edition of ECMA-376 standard up till ISO/IEC 29500:2012.
+ See ``\PhpOffice\PhpWord\SimpleType\Jc`` class constants for possible values.
+- ``font``. Font name.
+- ``format``. Numbering format bullet\|decimal\|upperRoman\|lowerRoman\|upperLetter\|lowerLetter.
+- ``hanging``. See paragraph style.
+- ``hint``. See font style.
+- ``left``. See paragraph style.
+- ``restart``. Restart numbering level symbol.
+- ``start``. Starting value.
+- ``suffix``. Content between numbering symbol and paragraph text tab\|space\|nothing.
+- ``tabPos``. See paragraph style.
+- ``text``. Numbering level text e.g. %1 for nonbullet or bullet character.
\ No newline at end of file
diff --git a/docs/usage/styles/paragraph.md b/docs/usage/styles/paragraph.md
new file mode 100644
index 0000000000..f51d5ba030
--- /dev/null
+++ b/docs/usage/styles/paragraph.md
@@ -0,0 +1,29 @@
+# Paragraph
+
+Available Paragraph style options:
+
+- ``alignment``. Supports all alignment modes since 1st Edition of ECMA-376 standard up till ISO/IEC 29500:2012.
+ See ``\PhpOffice\PhpWord\SimpleType\Jc`` class constants for possible values.
+- ``basedOn``. Parent style.
+- ``hanging``. Hanging indentation in *half inches*.
+- ``indent``. Indent (left indentation) in *half inches*.
+- ``indentation``. An array of indentation key => value pairs in *twip*. Supports *left*, *right*, *firstLine*, *firstLineChars* and *hanging* indentation.
+ See ``\PhpOffice\PhpWord\Style\Indentation`` for possible identation types.
+- ``keepLines``. Keep all lines on one page, *true* or *false*.
+- ``keepNext``. Keep paragraph with next paragraph, *true* or *false*.
+- ``lineHeight``. Text line height, e.g. *1.0*, *1.5*, etc.
+- ``next``. Style for next paragraph.
+- ``pageBreakBefore``. Start paragraph on next page, *true* or *false*.
+- ``spaceBefore``. Space before paragraph in *twip*.
+- ``spaceAfter``. Space after paragraph in *twip*.
+- ``spacing``. Space between lines in *twip*. If spacingLineRule is auto, 240 (height of 1 line) will be added, so if you want a double line height, set this to 240.
+- ``spacingLineRule``. Line Spacing Rule. *auto*, *exact*, *atLeast*
+ See ``\PhpOffice\PhpWord\SimpleType\LineSpacingRule`` class constants for possible values.
+- ``suppressAutoHyphens``. Hyphenation for paragraph, *true* or *false*.
+- ``tabs``. Set of custom tab stops.
+- ``widowControl``. Allow first/last line to display on a separate page, *true* or *false*.
+- ``contextualSpacing``. Ignore Spacing Above and Below When Using Identical Styles, *true* or *false*.
+- ``bidi``. Right to Left Paragraph Layout, *true* or *false*.
+- ``shading``. Paragraph Shading.
+- ``textAlignment``. Vertical Character Alignment on Line.
+ See ``\PhpOffice\PhpWord\SimpleType\TextAlignment`` class constants for possible values.
\ No newline at end of file
diff --git a/docs/usage/styles/section.md b/docs/usage/styles/section.md
new file mode 100644
index 0000000000..2be22e8077
--- /dev/null
+++ b/docs/usage/styles/section.md
@@ -0,0 +1,28 @@
+# Section
+
+Available Section style options:
+
+- ``borderBottomColor``. Border bottom color.
+- ``borderBottomSize``. Border bottom size in *twip*.
+- ``borderLeftColor``. Border left color.
+- ``borderLeftSize``. Border left size in *twip*.
+- ``borderRightColor``. Border right color.
+- ``borderRightSize``. Border right size in *twip*.
+- ``borderTopColor``. Border top color.
+- ``borderTopSize``. Border top size in *twip*.
+- ``breakType``. Section break type (nextPage, nextColumn, continuous, evenPage, oddPage).
+- ``colsNum``. Number of columns.
+- ``colsSpace``. Spacing between columns.
+- ``footerHeight``. Spacing to bottom of footer.
+- ``gutter``. Page gutter spacing.
+- ``headerHeight``. Spacing to top of header.
+- ``marginTop``. Page margin top in *twip*.
+- ``marginLeft``. Page margin left in *twip*.
+- ``marginRight``. Page margin right in *twip*.
+- ``marginBottom``. Page margin bottom in *twip*.
+- ``orientation``. Page orientation (``portrait``, which is default, or ``landscape``).
+ See ``\PhpOffice\PhpWord\Style\Section::ORIENTATION_...`` class constants for possible values
+- ``pageSizeH``. Page height in *twip*. Implicitly defined by ``orientation`` option. Any changes are discouraged.
+- ``pageSizeW``. Page width in *twip*. Implicitly defined by ``orientation`` option. Any changes are discouraged.
+- ``vAlign``. Vertical Page Alignment
+ See ``\PhpOffice\PhpWord\SimpleType\VerticalJc`` for possible values
\ No newline at end of file
diff --git a/docs/usage/styles/table.md b/docs/usage/styles/table.md
new file mode 100644
index 0000000000..1f82f3c638
--- /dev/null
+++ b/docs/usage/styles/table.md
@@ -0,0 +1,49 @@
+# Table
+
+Available Table style options:
+
+- ``alignment``. Supports all alignment modes since 1st Edition of ECMA-376 standard up till ISO/IEC 29500:2012.
+ See ``\PhpOffice\PhpWord\SimpleType\JcTable`` and ``\PhpOffice\PhpWord\SimpleType\Jc`` class constants for possible values.
+- ``bgColor``. Background color, e.g. '9966CC'.
+- ``border(Top|Right|Bottom|Left)Color``. Border color, e.g. '9966CC'.
+- ``border(Top|Right|Bottom|Left)Size``. Border size in *twip*.
+- ``cellMargin(Top|Right|Bottom|Left)``. Cell margin in *twip*.
+- ``indent``. Table indent from leading margin. Must be an instance of ``\PhpOffice\PhpWord\ComplexType\TblWidth``.
+- ``width``. Table width in Fiftieths of a Percent or Twentieths of a Point.
+- ``unit``. The unit to use for the width. One of ``\PhpOffice\PhpWord\SimpleType\TblWidth``. Defaults to *auto*.
+- ``layout``. Table layout, either *fixed* or *autofit* See ``\PhpOffice\PhpWord\Style\Table`` for constants.
+- ``cellSpacing`` Cell spacing in *twip*
+- ``position`` Floating Table Positioning, see below for options
+- ``bidiVisual`` Present table as Right-To-Left
+
+Floating Table Positioning options:
+
+- ``leftFromText`` Distance From Left of Table to Text in *twip*
+- ``rightFromText`` Distance From Right of Table to Text in *twip*
+- ``topFromText`` Distance From Top of Table to Text in *twip*
+- ``bottomFromText`` Distance From Top of Table to Text in *twip*
+- ``vertAnchor`` Table Vertical Anchor, one of ``\PhpOffice\PhpWord\Style\TablePosition::VANCHOR_*``
+- ``horzAnchor`` Table Horizontal Anchor, one of ``\PhpOffice\PhpWord\Style\TablePosition::HANCHOR_*``
+- ``tblpXSpec`` Relative Horizontal Alignment From Anchor, one of ``\PhpOffice\PhpWord\Style\TablePosition::XALIGN_*``
+- ``tblpX`` Absolute Horizontal Distance From Anchorin *twip*
+- ``tblpYSpec`` Relative Vertical Alignment From Anchor, one of ``\PhpOffice\PhpWord\Style\TablePosition::YALIGN_*``
+- ``tblpY`` Absolute Vertical Distance From Anchorin *twip*
+
+Available Row style options:
+
+- ``cantSplit``. Table row cannot break across pages, *true* or *false*.
+- ``exactHeight``. Row height is exact or at least.
+- ``tblHeader``. Repeat table row on every new page, *true* or *false*.
+
+Available Cell style options:
+
+- ``bgColor``. Background color, e.g. '9966CC'.
+- ``border(Top|Right|Bottom|Left)Color``. Border color, e.g. '9966CC'.
+- ``border(Top|Right|Bottom|Left)Size``. Border size in *twip*.
+- ``border(Top|Right|Bottom|Left)Style``. Border style. You can use constants from ``\PhpOffice\PhpWord\SimpleType\Border``
+- ``gridSpan``. Number of columns spanned.
+- ``textDirection(btLr|tbRl)``. Direction of text.
+ You can use constants ``\PhpOffice\PhpWord\Style\Cell::TEXT_DIR_BTLR`` and ``\PhpOffice\PhpWord\Style\Cell::TEXT_DIR_TBRL``
+- ``valign``. Vertical alignment, *top*, *center*, *both*, *bottom*.
+- ``vMerge``. *restart* or *continue*.
+- ``width``. Cell width in *twip*.
\ No newline at end of file
diff --git a/docs/usage/template.md b/docs/usage/template.md
new file mode 100644
index 0000000000..a0c885e75e
--- /dev/null
+++ b/docs/usage/template.md
@@ -0,0 +1,372 @@
+# Template processing
+
+You can create an OOXML document template with included search-patterns (macros) which can be replaced by any value you wish. Only single-line values can be replaced.
+By default Macros are defined like this: ``${search-pattern}`` but you can define custom macros.
+To load a template file, create a new instance of the TemplateProcessor.
+
+``` php
+setValue('firstname', 'John');
+$templateProcessor->setValue('lastname', 'Doe');
+```
+
+## setValues
+
+You can also set multiple values by passing all of them in an array.
+
+``` php
+setValues(array('firstname' => 'John', 'lastname' => 'Doe'));
+```
+
+## setCheckbox
+
+Given a template containing a checkbox control with the title or tag named:
+
+``` clean
+${checkbox}
+```
+The following will check the checkbox:
+
+``` php
+setCheckbox('checkbox', true);
+```
+
+!!! note annotate "To add a checkbox and set its title or tag in a template"
+
+ 1. Go to **Developer** tab > **Controls** group
+ 2. Select the **Check Box Content Control**
+ 3. Right-click on your checkbox
+ 4. Click on **Properties**
+ 5. Set the title or the tag
+
+ These steps may change regarding the version of Microsoft Word used.
+
+## setMacroOpeningChars
+
+You can define a custom opening macro. The following will set ``{#`` as the opening search pattern.
+
+``` php
+setMacroOpeningChars('{#');
+```
+
+## setMacroClosingChars
+
+You can define a custom closing macro. The following will set ``#}`` as the closing search pattern.
+
+``` php
+setMacroClosingChars('#}');
+```
+
+## setMacroChars
+
+You can define a custom opening and closing macro at the same time . The following will set the search-pattern like this: ``{#search-pattern#}`` .
+
+``` php
+setMacroChars('{#', '#}');
+```
+
+## setImageValue
+
+The search-pattern model for images can be like:
+ - ``${search-image-pattern}``
+ - ``${search-image-pattern:[width]:[height]:[ratio]}``
+ - ``${search-image-pattern:[width]x[height]}``
+ - ``${search-image-pattern:size=[width]x[height]}``
+ - ``${search-image-pattern:width=[width]:height=[height]:ratio=false}``
+
+Where:
+ - [width] and [height] can be just numbers or numbers with measure, which supported by Word (cm, mm, in, pt, pc, px, %, em, ex)
+ - [ratio] uses only for ``false``, ``-`` or ``f`` to turn off respect aspect ration of image. By default template image size uses as 'container' size.
+
+Example:
+
+``` clean
+
+${CompanyLogo}
+${UserLogo:50:50} ${Name} - ${City} - ${Street}
+```
+
+``` php
+setValue('Name', 'John Doe');
+$templateProcessor->setValue(array('City', 'Street'), array('Detroit', '12th Street'));
+
+$templateProcessor->setImageValue('CompanyLogo', 'path/to/company/logo.png');
+$templateProcessor->setImageValue('UserLogo', array('path' => 'path/to/logo.png', 'width' => 100, 'height' => 100, 'ratio' => false));
+$templateProcessor->setImageValue('FeatureImage', function () {
+ // Closure will only be executed if the replacement tag is found in the template
+
+ return array('path' => SlowFeatureImageGenerator::make(), 'width' => 100, 'height' => 100, 'ratio' => false);
+});
+```
+
+## cloneBlock
+
+Given a template containing
+See ``Sample_23_TemplateBlock.php`` for an example.
+
+``` clean
+
+${block_name}
+Customer: ${customer_name}
+Address: ${customer_address}
+${/block_name}
+```
+
+The following will duplicate everything between ``${block_name}`` and ``${/block_name}`` 3 times.
+
+``` php
+cloneBlock('block_name', 3, true, true);
+```
+
+The last parameter will rename any macro defined inside the block and add #1, #2, #3 ... to the macro name.
+The result will be
+
+``` clean
+
+Customer: ${customer_name#1}
+Address: ${customer_address#1}
+
+Customer: ${customer_name#2}
+Address: ${customer_address#2}
+
+Customer: ${customer_name#3}
+Address: ${customer_address#3}
+```
+
+It is also possible to pass an array with the values to replace the marcros with.
+If an array with replacements is passed, the ``count`` argument is ignored, it is the size of the array that counts.
+
+``` php
+ 'Batman', 'customer_address' => 'Gotham City'),
+ array('customer_name' => 'Superman', 'customer_address' => 'Metropolis'),
+);
+$templateProcessor->cloneBlock('block_name', 0, true, false, $replacements);
+```
+
+The result will then be
+
+``` clean
+
+Customer: Batman
+Address: Gotham City
+
+Customer: Superman
+Address: Metropolis
+```
+
+## replaceBlock
+
+Given a template containing
+
+``` clean
+
+${block_name}
+This block content will be replaced
+${/block_name}
+```
+
+The following will replace everything between ``${block_name}`` and ``${/block_name}`` with the value passed.
+
+``` php
+replaceBlock('block_name', 'This is the replacement text.');
+```
+
+## deleteBlock
+
+Same as previous, but it deletes the block
+
+``` php
+deleteBlock('block_name');
+```
+
+## cloneRow
+
+Clones a table row in a template document.
+See ``Sample_07_TemplateCloneRow.php`` for an example.
+
+``` clean
+
++-----------+----------------+
+| ${userId} | ${userName} |
+| |----------------+
+| | ${userAddress} |
++-----------+----------------+
+```
+
+``` php
+cloneRow('userId', 2);
+```
+
+Will result in
+
+``` clean
+
+ +-------------+------------------+
+| ${userId#1} | ${userName#1} |
+| |------------------+
+| | ${userAddress#1} |
++-------------+------------------+
+| ${userId#2} | ${userName#2} |
+| |------------------+
+| | ${userAddress#2} |
++-------------+------------------+
+```
+
+## cloneRowAndSetValues
+
+Finds a row in a table row identified by `$search` param and clones it as many times as there are entries in `$values`.
+
+``` clean
+
++-----------+----------------+
+| ${userId} | ${userName} |
+| |----------------+
+| | ${userAddress} |
++-----------+----------------+
+```
+
+``` php
+ 1, 'userName' => 'Batman', 'userAddress' => 'Gotham City'],
+ ['userId' => 2, 'userName' => 'Superman', 'userAddress' => 'Metropolis'],
+];
+$templateProcessor->cloneRowAndSetValues('userId', $values);
+```
+
+Will result in
+
+``` clean
+
++---+-------------+
+| 1 | Batman |
+| |-------------+
+| | Gotham City |
++---+-------------+
+| 2 | Superman |
+| |-------------+
+| | Metropolis |
++---+-------------+
+```
+
+## applyXslStyleSheet
+
+Applies the XSL stylesheet passed to header part, footer part and main part
+
+``` php
+load('/path/to/my/stylesheet.xsl');
+$templateProcessor->applyXslStyleSheet($xslDomDocument);
+```
+
+## setComplexValue
+
+Replaces a ${macro} with the ComplexType passed.
+See ``Sample_40_TemplateSetComplexValue.php`` for examples.
+
+``` php
+addText('by a red italic text', array('italic' => true, 'color' => 'red'));
+$templateProcessor->setComplexValue('inline', $inline);
+```
+
+## setComplexBlock
+
+Replaces a ${macro} with the ComplexType passed.
+See ``Sample_40_TemplateSetComplexValue.php`` for examples.
+
+``` php
+ 12, 'borderColor' => 'green', 'width' => 6000, 'unit' => TblWidth::TWIP));
+$table->addRow();
+$table->addCell(150)->addText('Cell A1');
+$table->addCell(150)->addText('Cell A2');
+$table->addCell(150)->addText('Cell A3');
+$table->addRow();
+$table->addCell(150)->addText('Cell B1');
+$table->addCell(150)->addText('Cell B2');
+$table->addCell(150)->addText('Cell B3');
+$templateProcessor->setComplexBlock('table', $table);
+```
+
+## setChartValue
+
+Replace a variable by a chart.
+
+``` php
+setChartValue('myChart', $chart);
+```
+
+## save
+
+Saves the loaded template within the current directory. Returns the file path.
+
+``` php
+save();
+```
+
+## saveAs
+
+Saves a copy of the loaded template in the indicated path.
+
+``` php
+saveAs($pathToSave);
+```
diff --git a/docs/usage/writers.md b/docs/usage/writers.md
new file mode 100644
index 0000000000..97708a0294
--- /dev/null
+++ b/docs/usage/writers.md
@@ -0,0 +1,152 @@
+# Writers
+
+## HTML
+The name of the writer is `HTML`.
+
+``` php
+save(__DIR__ . '/sample.html');
+```
+
+
+When generating html/pdf, you can alter the default handling of white space (normal), and/or supply a fallback generic font as follows:
+
+```php
+$writer = IOFactory::createWriter($oPhpWord, 'HTML');
+$writer->setDefaultGenericFont('serif');
+$writer->setDefaultWhiteSpace('pre-wrap');
+$writer->save(__DIR__ . '/sample.html');
+```
+
+## ODText
+The name of the writer is `ODText`.
+
+``` php
+save(__DIR__ . '/sample.docx');
+```
+
+## PDF
+The name of the writer is `PDF`.
+
+``` php
+save(__DIR__ . '/sample.pdf');
+```
+
+To generate a PDF, the PhpWord object passes through HTML before generating the PDF.
+This HTML can be modified using a callback.
+
+``` php
+setEditCallback('cbEditHTML');
+$writer->save(__DIR__ . '/sample.pdf');
+
+/**
+ * Add a meta tag generator
+ */
+function cbEditHTML(string $inputHTML): string
+{
+ $beforeBody = '';
+ $needle = '';
+
+ $pos = strpos($inputHTML, $needle);
+ if ($pos !== false) {
+ $inputHTML = (string) substr_replace($inputHTML, "$beforeBody\n$needle", $pos, strlen($needle));
+ }
+
+ return $inputHTML;
+}
+```
+
+### Options
+
+You can define options like :
+* `font`: default font
+
+Options must be defined before creating the writer.
+
+``` php
+ 'Arial'
+]);
+
+$writer = IOFactory::createWriter($oPhpWord, 'PDF');
+$writer->save(__DIR__ . '/sample.pdf');
+```
+
+#### Specify the PDF Renderer
+
+Before PHPWord can write a PDF, you **must** specify the renderer to use and the path to it.
+Currently, three renderers are supported:
+
+- [DomPDF](https://github.com/dompdf/dompdf)
+- [MPDF](https://mpdf.github.io/)
+- [TCPDF](https://tcpdf.org/)
+
+To specify the renderer you use two static `Settings` functions:
+
+- `setPdfRendererName`: This sets the name of the renderer library to use.
+ Provide one of [`Settings`' three `PDF_` constants](https://github.com/PHPOffice/PHPWord/blob/master/src/PhpWord/Settings.php#L39-L41) to the function call.
+- `setPdfRendererPath`: This sets the path to the renderer library.
+ This directory is the renderer's package directory within Composer's _vendor_ directory.
+
+In the code below, you can see an example of setting MPDF as the desired PDF renderer.
+
+```php
+Settings::setPdfRendererName(Settings::PDF_RENDERER_MPDF);
+Settings::setPdfRendererPath(__DIR__ . '/../vendor/mpdf/mpdf');
+```
+
+or you can edit settings in phpword.ini ( or phpword.ini.dist) file.
+
+``` ini
+pdfRendererName = MPDF ;DomPDF, TCPDF, MPDF
+pdfRendererPath = /path/to/your/renderer/folder
+```
+
+## RTF
+The name of the writer is `RTF`.
+
+``` php
+save(__DIR__ . '/sample.rtf');
+```
+
+## Word2007
+The name of the writer is `Word2007`.
+
+``` php
+save(__DIR__ . '/sample.docx');
+```
+
+### ZIP Adapter
+You can change the ZIP Adapter for the writer. By default, the ZIP Adapter is `ZipArchiveAdapter`.
+
+``` php
+setZipAdapter(new PclZipAdapter());
+$writer->save(__DIR__ . '/sample.docx');
+```
diff --git a/docs/writersreaders.rst b/docs/writersreaders.rst
deleted file mode 100644
index 34a0805a8c..0000000000
--- a/docs/writersreaders.rst
+++ /dev/null
@@ -1,110 +0,0 @@
-.. _writersreaders:
-
-Writers & readers
-=================
-
-OOXML
------
-
-The package of OOXML document consists of the following files.
-
-- \_rels/
-
- - .rels
-
-- docProps/
-
- - app.xml
- - core.xml
- - custom.xml
-
-- word/
-
- - rels/
-
- - document.rels.xml
-
- - media/
- - theme/
-
- - theme1.xml
-
- - document.xml
- - fontTable.xml
- - numbering.xml
- - settings.xml
- - styles.xml
- - webSettings.xml
-
-- [Content\_Types].xml
-
-OpenDocument
-------------
-
-Package
-~~~~~~~
-
-The package of OpenDocument document consists of the following files.
-
-- META-INF/
-
- - manifest.xml
-
-- Pictures/
-- content.xml
-- meta.xml
-- styles.xml
-
-content.xml
-~~~~~~~~~~~
-
-The structure of ``content.xml`` is described below.
-
-- office:document-content
-
- - office:font-facedecls
- - office:automatic-styles
- - office:body
-
- - office:text
-
- - draw:\*
- - office:forms
- - table:table
- - text:list
- - text:numbered-paragraph
- - text:p
- - text:table-of-contents
- - text:section
-
- - office:chart
- - office:image
- - office:drawing
-
-styles.xml
-~~~~~~~~~~
-
-The structure of ``styles.xml`` is described below.
-
-- office:document-styles
-
- - office:styles
- - office:automatic-styles
- - office:master-styles
-
- - office:master-page
-
-RTF
----
-
-To be completed.
-
-HTML
-----
-
-To be completed.
-
-PDF
----
-
-To be completed.
diff --git a/mkdocs.yml b/mkdocs.yml
new file mode 100644
index 0000000000..97c842112c
--- /dev/null
+++ b/mkdocs.yml
@@ -0,0 +1,121 @@
+site_name: PHPWord
+site_url: https://phpoffice.github.io/PHPWord
+repo_url: https://github.com/PHPOffice/PHPWord
+repo_name: PHPOffice/PHPWord
+edit_uri: edit/develop/docs/
+
+## Theme
+theme:
+ name: material
+ palette:
+ primary: indigo
+ features:
+ - search.highlight
+ - search.suggest
+
+## Plugins
+plugins:
+ - search
+ - autolink_references:
+ autolinks:
+ - reference_prefix: GP-
+ target_url: https://github.com/
+ - reference_prefix: GH-
+ target_url: https://github.com/PHPOffice/PHPWord/issues/
+ - reference_prefix: CP-
+ target_url: https://archive.codeplex.com/?p=phpword&
+
+## Config
+extra:
+ generator: false
+markdown_extensions:
+ ## Syntax highlighting
+ - pymdownx.highlight
+ - pymdownx.superfences
+ ## Support for emojis
+ - pymdownx.emoji:
+ emoji_index: !!python/name:materialx.emoji.twemoji
+ emoji_generator: !!python/name:materialx.emoji.to_svg
+ ## Support for call-outs
+ - admonition
+ - pymdownx.details
+use_directory_urls: false
+
+## Navigation
+nav:
+ - Introduction: 'index.md'
+ - Install: 'install.md'
+ - Usage:
+ - Introduction: 'usage/introduction.md'
+ - Containers: 'usage/containers.md'
+ - Elements:
+ - Introduction: 'usage/elements/index.md'
+ - Chart: 'usage/elements/chart.md'
+ - Checkbox: 'usage/elements/checkbox.md'
+ - Comment: 'usage/elements/comment.md'
+ - Field: 'usage/elements/field.md'
+ - Footnote & Endnote: 'usage/elements/note.md'
+ - Formula: 'usage/elements/formula.md'
+ - Image: 'usage/elements/image.md'
+ - Line: 'usage/elements/line.md'
+ - Link: 'usage/elements/link.md'
+ - List: 'usage/elements/list.md'
+ - OLE Object: 'usage/elements/oleobject.md'
+ - Page Break: 'usage/elements/pagebreak.md'
+ - Preserve Text: 'usage/elements/preservetext.md'
+ - Ruby: 'usage/elements/ruby.md'
+ - Text: 'usage/elements/text.md'
+ - TextBox: 'usage/elements/textbox.md'
+ - Text Break: 'usage/elements/textbreak.md'
+ - Table: 'usage/elements/table.md'
+ - Table of contents: 'usage/elements/toc.md'
+ - Title: 'usage/elements/title.md'
+ - Track Changes: 'usage/elements/trackchanges.md'
+ - Watermark: 'usage/elements/watermark.md'
+ - Styles:
+ - Chart: 'usage/styles/chart.md'
+ - Font: 'usage/styles/font.md'
+ - Image: 'usage/styles/image.md'
+ - Numbering Level: 'usage/styles/numberinglevel.md'
+ - Paragraph: 'usage/styles/paragraph.md'
+ - Section: 'usage/styles/section.md'
+ - Table: 'usage/styles/table.md'
+ - Template Processing: 'usage/template.md'
+ - Readers: 'usage/readers.md'
+ - Writers: 'usage/writers.md'
+ - FAQ: 'faq.md'
+ - How to: 'howto.md'
+ - Credits: 'credits.md'
+ - Releases:
+ - '1.x':
+ - '1.5.0 (WIP)': 'changes/1.x/1.5.0.md'
+ - '1.4.0': 'changes/1.x/1.4.0.md'
+ - '1.3.0': 'changes/1.x/1.3.0.md'
+ - '1.2.0': 'changes/1.x/1.2.0.md'
+ - '1.1.0': 'changes/1.x/1.1.0.md'
+ - '1.0.0': 'changes/1.x/1.0.0.md'
+ - '0.x':
+ - '0.18.3': 'changes/0.x/0.18.3.md'
+ - '0.18.2': 'changes/0.x/0.18.2.md'
+ - '0.18.1': 'changes/0.x/0.18.1.md'
+ - '0.18.0': 'changes/0.x/0.18.0.md'
+ - '0.17.0': 'changes/0.x/0.17.0.md'
+ - '0.16.0': 'changes/0.x/0.16.0.md'
+ - '0.15.0': 'changes/0.x/0.15.0.md'
+ - '0.14.0': 'changes/0.x/0.14.0.md'
+ - '0.13.0': 'changes/0.x/0.13.0.md'
+ - '0.12.1': 'changes/0.x/0.12.1.md'
+ - '0.12.0': 'changes/0.x/0.12.0.md'
+ - '0.11.1': 'changes/0.x/0.11.1.md'
+ - '0.11.0': 'changes/0.x/0.11.0.md'
+ - '0.10.1': 'changes/0.x/0.10.1.md'
+ - '0.10.0': 'changes/0.x/0.10.0.md'
+ - '0.9.1': 'changes/0.x/0.9.1.md'
+ - '0.9.0': 'changes/0.x/0.9.0.md'
+ - '0.8.1': 'changes/0.x/0.8.1.md'
+ - '0.8.0': 'changes/0.x/0.8.0.md'
+ - '0.7.0': 'changes/0.x/0.7.0.md'
+ - Developers:
+ - 'Coveralls': 'https://coveralls.io/github/PHPOffice/PHPWord'
+ - 'Code Coverage': 'coverage/index.html'
+ - 'PHPDoc': 'docs/index.html'
diff --git a/phpmd.xml.dist b/phpmd.xml.dist
index f0b62b2d6e..aeb2774881 100644
--- a/phpmd.xml.dist
+++ b/phpmd.xml.dist
@@ -4,23 +4,31 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
-
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
\ No newline at end of file
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
new file mode 100644
index 0000000000..ea75a4bd91
--- /dev/null
+++ b/phpstan-baseline.neon
@@ -0,0 +1,1877 @@
+parameters:
+ ignoreErrors:
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractContainer\\:\\:__call\\(\\) should return PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement but returns null\\.$#"
+ count: 1
+ path: src/PhpWord/Element/AbstractContainer.php
+
+ -
+ message: "#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#"
+ count: 1
+ path: src/PhpWord/Element/AbstractContainer.php
+
+ -
+ message: "#^Parameter \\#1 \\$string of function md5 expects string, int\\<0, max\\> given\\.$#"
+ count: 1
+ path: src/PhpWord/Element/AbstractElement.php
+
+ -
+ message: "#^Parameter \\#2 \\$styleValue of method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement\\:\\:setNewStyle\\(\\) expects array\\|PhpOffice\\\\PhpWord\\\\Style\\|string\\|null, array\\|PhpOffice\\\\PhpWord\\\\Style\\\\Cell\\|null given\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Cell.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Element\\\\Field\\:\\:setOptions\\(\\) should return PhpOffice\\\\PhpWord\\\\Element\\\\Field but returns array\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Field.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Element\\\\Field\\:\\:setProperties\\(\\) should return PhpOffice\\\\PhpWord\\\\Element\\\\Field but returns array\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Field.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Element\\\\Field\\:\\:\\$fontStyle \\(PhpOffice\\\\PhpWord\\\\Style\\\\Font\\|string\\) does not accept null\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Field.php
+
+ -
+ message: "#^Result of \\|\\| is always true\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Field.php
+
+ -
+ message: "#^Parameter \\#2 \\$styleValue of method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement\\:\\:setNewStyle\\(\\) expects array\\|PhpOffice\\\\PhpWord\\\\Style\\|string\\|null, array\\|PhpOffice\\\\PhpWord\\\\Style\\\\Paragraph\\|string\\|null given\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Footnote.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Element\\\\Image\\:\\:getArchiveImageSize\\(\\) should return array\\|null but returns array\\|false\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Image.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Element\\\\Image\\:\\:getImageString\\(\\) should return string\\|null but returns string\\|false\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Image.php
+
+ -
+ message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, string given\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Image.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Element\\\\Image\\:\\:\\$source \\(string\\) does not accept string\\|false\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Image.php
+
+ -
+ message: "#^Offset 'extension' does not exist on array\\{dirname\\?\\: string, basename\\: string, extension\\?\\: string, filename\\: string\\}\\.$#"
+ count: 2
+ path: src/PhpWord/Element/OLEObject.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Element\\\\OLEObject\\:\\:\\$icon \\(string\\) does not accept string\\|false\\.$#"
+ count: 1
+ path: src/PhpWord/Element/OLEObject.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Element\\\\Section\\:\\:addHeader\\(\\) should return PhpOffice\\\\PhpWord\\\\Element\\\\Header but returns PhpOffice\\\\PhpWord\\\\Element\\\\Footer\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Section.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Element\\\\Section\\:\\:addHeaderFooter\\(\\) should return PhpOffice\\\\PhpWord\\\\Element\\\\Footer but returns PhpOffice\\\\PhpWord\\\\Element\\\\AbstractContainer\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Section.php
+
+ -
+ message: "#^Parameter \\#2 \\$styleValue of method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement\\:\\:setNewStyle\\(\\) expects array\\|PhpOffice\\\\PhpWord\\\\Style\\|string\\|null, array\\|PhpOffice\\\\PhpWord\\\\Style\\|PhpOffice\\\\PhpWord\\\\Style\\\\Section\\|string given\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Section.php
+
+ -
+ message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#"
+ count: 1
+ path: src/PhpWord/Element/Section.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Escaper\\\\Rtf\\:\\:escapeAsciiCharacter\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Escaper/Rtf.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Escaper\\\\Rtf\\:\\:escapeAsciiCharacter\\(\\) has parameter \\$code with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Escaper/Rtf.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Escaper\\\\Rtf\\:\\:escapeMultibyteCharacter\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Escaper/Rtf.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Escaper\\\\Rtf\\:\\:escapeMultibyteCharacter\\(\\) has parameter \\$code with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Escaper/Rtf.php
+
+ -
+ message: "#^Cannot instantiate interface PhpOffice\\\\PhpWord\\\\Writer\\\\WriterInterface\\.$#"
+ count: 1
+ path: src/PhpWord/IOFactory.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\IOFactory\\:\\:createObject\\(\\) should return PhpOffice\\\\PhpWord\\\\Reader\\\\ReaderInterface\\|PhpOffice\\\\PhpWord\\\\Writer\\\\WriterInterface but returns object\\.$#"
+ count: 1
+ path: src/PhpWord/IOFactory.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\IOFactory\\:\\:createReader\\(\\) should return PhpOffice\\\\PhpWord\\\\Reader\\\\ReaderInterface but returns PhpOffice\\\\PhpWord\\\\Reader\\\\ReaderInterface\\|PhpOffice\\\\PhpWord\\\\Writer\\\\WriterInterface\\.$#"
+ count: 1
+ path: src/PhpWord/IOFactory.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\IOFactory\\:\\:createWriter\\(\\) should return PhpOffice\\\\PhpWord\\\\Writer\\\\WriterInterface but returns PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\|PhpOffice\\\\PhpWord\\\\Writer\\\\WriterInterface\\.$#"
+ count: 1
+ path: src/PhpWord/IOFactory.php
+
+ -
+ message: "#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#"
+ count: 1
+ path: src/PhpWord/IOFactory.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\PhpWord\\:\\:getDefaultFontSize\\(\\) should return int but returns float\\|int\\.$#"
+ count: 1
+ path: src/PhpWord/PhpWord.php
+
+ -
+ message: "#^Parameter \\#1 \\$callback of function forward_static_call_array expects callable\\(\\)\\: mixed, array\\{'PhpOffice\\\\\\\\PhpWord…', string\\} given\\.$#"
+ count: 1
+ path: src/PhpWord/PhpWord.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Reader\\\\AbstractReader\\:\\:openFile\\(\\) should return resource but return statement is missing\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/AbstractReader.php
+
+ -
+ message: "#^Parameter \\#2 \\$html of static method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:addHtml\\(\\) expects string, string\\|false given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/HTML.php
+
+ -
+ message: "#^Offset 'textNodes' on array\\{changed\\: PhpOffice\\\\PhpWord\\\\Element\\\\TrackChange, textNodes\\: DOMNodeList\\\\} in isset\\(\\) always exists and is not nullable\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/ODText/Content.php
+
+ -
+ message: "#^Parameter \\#2 \\$contextNode of method PhpOffice\\\\PhpWord\\\\Shared\\\\XMLReader\\:\\:getElements\\(\\) expects DOMElement\\|null, DOMNode\\|null given\\.$#"
+ count: 2
+ path: src/PhpWord/Reader/ODText/Content.php
+
+ -
+ message: "#^Parameter \\#2 \\$depth of method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractContainer\\:\\:addTitle\\(\\) expects int, string\\|null given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/ODText/Content.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Reader\\\\RTF\\\\Document\\:\\:\\$rtf \\(string\\) does not accept string\\|false\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/RTF.php
+
+ -
+ message: "#^Cannot call method setStyleByArray\\(\\) on PhpOffice\\\\PhpWord\\\\Style\\\\Font\\|string\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/RTF/Document.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Reader\\\\RTF\\\\Document\\:\\:\\$phpWord is never read, only written\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/RTF/Document.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Reader\\\\ReaderInterface\\:\\:load\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/ReaderInterface.php
+
+ -
+ message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|false given\\.$#"
+ count: 2
+ path: src/PhpWord/Reader/Word2007.php
+
+ -
+ message: "#^Parameter \\#2 \\$xmlFile of method PhpOffice\\\\PhpWord\\\\Reader\\\\Word2007\\:\\:getRels\\(\\) expects string, string\\|false given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007.php
+
+ -
+ message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, string\\|false given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007.php
+
+ -
+ message: "#^Binary operation \"/\" between string\\|null and 2 results in an error\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Call to an undefined method DOMNode\\:\\:getAttribute\\(\\)\\.$#"
+ count: 2
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Reader\\\\Word2007\\\\AbstractPart\\:\\:getHeadingDepth\\(\\) never returns float so it can be removed from the return type\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Reader\\\\Word2007\\\\AbstractPart\\:\\:getHeadingDepth\\(\\) should return float\\|int\\|null but returns string\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Reader\\\\Word2007\\\\AbstractPart\\:\\:read\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Parameter \\#1 \\$depth of method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractContainer\\:\\:addListItemRun\\(\\) expects int, string\\|null given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Parameter \\#1 \\$height of method PhpOffice\\\\PhpWord\\\\Element\\\\Table\\:\\:addRow\\(\\) expects int\\|null, string\\|null given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Parameter \\#1 \\$value of method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement\\:\\:setRelationId\\(\\) expects int, string\\|null given\\.$#"
+ count: 2
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Parameter \\#1 \\$width of method PhpOffice\\\\PhpWord\\\\Element\\\\Row\\:\\:addCell\\(\\) expects int\\|null, string\\|null given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Parameter \\#2 \\$contextNode of method PhpOffice\\\\PhpWord\\\\Shared\\\\XMLReader\\:\\:getAttribute\\(\\) expects DOMElement\\|null, DOMNode\\|null given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Parameter \\#2 \\$depth of method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractContainer\\:\\:addTitle\\(\\) expects int, float\\|int given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Strict comparison using \\=\\=\\= between null and DOMElement will always evaluate to false\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/AbstractPart.php
+
+ -
+ message: "#^Parameter \\#2 \\$relationId of method PhpOffice\\\\PhpWord\\\\Reader\\\\Word2007\\\\Footnotes\\:\\:getElement\\(\\) expects int, string\\|null given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/Footnotes.php
+
+ -
+ message: "#^Parameter \\#3 \\$levelId of method PhpOffice\\\\PhpWord\\\\Reader\\\\Word2007\\\\Numbering\\:\\:readLevel\\(\\) expects int, string\\|null given\\.$#"
+ count: 2
+ path: src/PhpWord/Reader/Word2007/Numbering.php
+
+ -
+ message: "#^Parameter \\#1 \\$comments of method PhpOffice\\\\PhpWord\\\\ComplexType\\\\TrackChangesView\\:\\:setComments\\(\\) expects bool\\|null, string\\|null given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/Settings.php
+
+ -
+ message: "#^Parameter \\#1 \\$consecutiveHyphenLimit of method PhpOffice\\\\PhpWord\\\\Metadata\\\\Settings\\:\\:setConsecutiveHyphenLimit\\(\\) expects int, string given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/Settings.php
+
+ -
+ message: "#^Parameter \\#1 \\$hyphenationZone of method PhpOffice\\\\PhpWord\\\\Metadata\\\\Settings\\:\\:setHyphenationZone\\(\\) expects float\\|int\\|null, string given\\.$#"
+ count: 1
+ path: src/PhpWord/Reader/Word2007/Settings.php
+
+ -
+ message: "#^Parameter \\#1 \\$filename of function parse_ini_file expects string, string\\|false given\\.$#"
+ count: 1
+ path: src/PhpWord/Settings.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\AbstractEnum\\:\\:getConstants\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/AbstractEnum.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Shared\\\\AbstractEnum\\:\\:\\$constCacheArray has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/AbstractEnum.php
+
+ -
+ message: "#^Binary operation \"/\" between string and 10 results in an error\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Converter.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Converter\\:\\:angleToDegree\\(\\) should return int but returns float\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Converter.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Converter\\:\\:cssToPoint\\(\\) should return float\\|null but returns string\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Converter.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Converter\\:\\:htmlToRgb\\(\\) should return array but returns false\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Converter.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Converter\\:\\:inchToEmu\\(\\) should return int but returns float\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Converter.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Converter\\:\\:pixelToEmu\\(\\) should return int but returns float\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Converter.php
+
+ -
+ message: "#^Parameter \\#1 \\$centimeter of static method PhpOffice\\\\PhpWord\\\\Shared\\\\Converter\\:\\:cmToPoint\\(\\) expects float, string given\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Converter.php
+
+ -
+ message: "#^Parameter \\#1 \\$inch of static method PhpOffice\\\\PhpWord\\\\Shared\\\\Converter\\:\\:inchToPoint\\(\\) expects float, string given\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Converter.php
+
+ -
+ message: "#^Parameter \\#1 \\$pica of static method PhpOffice\\\\PhpWord\\\\Shared\\\\Converter\\:\\:picaToPoint\\(\\) expects float, string given\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Converter.php
+
+ -
+ message: "#^Parameter \\#1 \\$pixel of static method PhpOffice\\\\PhpWord\\\\Shared\\\\Converter\\:\\:pixelToPoint\\(\\) expects float, string given\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Converter.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Drawing\\:\\:angleToDegrees\\(\\) should return int but returns float\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Drawing.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Drawing\\:\\:emuToPixels\\(\\) should return int but returns float\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Drawing.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Drawing\\:\\:pixelsToEmu\\(\\) should return int but returns float\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Drawing.php
+
+ -
+ message: "#^Call to an undefined method DOMNode\\:\\:getAttribute\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Cannot call method setBorderSize\\(\\) on PhpOffice\\\\PhpWord\\\\Style\\\\Table\\|string\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Cannot call method setStyleName\\(\\) on PhpOffice\\\\PhpWord\\\\Style\\\\Table\\|string\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^If condition is always true\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:addHtml\\(\\) has parameter \\$options with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:filterOutNonInheritedStyles\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:mapBorderColor\\(\\) has parameter \\$cssBorderColor with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:mapBorderColor\\(\\) has parameter \\$styles with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:mapListType\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:parseLink\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:parseList\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:parseRuby\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:parseStyleDeclarations\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:recursiveParseStylesInHierarchy\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Parameter \\#1 \\$attribute of static method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:parseStyle\\(\\) expects DOMAttr, DOMNode given\\.$#"
+ count: 3
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Parameter \\#2 \\$element of static method PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:parseNode\\(\\) expects PhpOffice\\\\PhpWord\\\\Element\\\\AbstractContainer, PhpOffice\\\\PhpWord\\\\Element\\\\AbstractContainer\\|PhpOffice\\\\PhpWord\\\\Element\\\\Row\\|PhpOffice\\\\PhpWord\\\\Element\\\\Table given\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:\\$listIndex has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:\\$options has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Shared\\\\Html\\:\\:\\$xpath has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Result of \\|\\| is always true\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Right side of && is always true\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Variable \\$cNodes in empty\\(\\) always exists and is not falsy\\.$#"
+ count: 2
+ path: src/PhpWord/Shared/Html.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Shared\\\\Microsoft\\\\PasswordEncoder\\:\\:\\$encryptionMatrix has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Microsoft/PasswordEncoder.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Shared\\\\Microsoft\\\\PasswordEncoder\\:\\:\\$initialCodeArray has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Microsoft/PasswordEncoder.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Shared\\\\Microsoft\\\\PasswordEncoder\\:\\:\\$passwordMaxLength has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/Microsoft/PasswordEncoder.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\XMLWriter\\:\\:getData\\(\\) should return string but returns string\\|false\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/XMLWriter.php
+
+ -
+ message: "#^Call to method add\\(\\) on an unknown class PclZip\\.$#"
+ count: 2
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Call to method addFromString\\(\\) on an unknown class PclZip\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Call to method close\\(\\) on an unknown class PclZip\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Call to method extract\\(\\) on an unknown class PclZip\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Call to method extractByIndex\\(\\) on an unknown class PclZip\\.$#"
+ count: 3
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Call to method extractTo\\(\\) on an unknown class PclZip\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Call to method getFromName\\(\\) on an unknown class PclZip\\.$#"
+ count: 2
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Call to method listContent\\(\\) on an unknown class PclZip\\.$#"
+ count: 3
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Comparison operation \"\\!\\=\" between array and 0 results in an error\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Constant PCLZIP_OPT_ADD_PATH not found\\.$#"
+ count: 2
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Constant PCLZIP_OPT_EXTRACT_AS_STRING not found\\.$#"
+ count: 2
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Constant PCLZIP_OPT_PATH not found\\.$#"
+ count: 2
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Constant PCLZIP_OPT_REMOVE_PATH not found\\.$#"
+ count: 2
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Instantiated class PclZip not found\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\ZipArchive\\:\\:getFromName\\(\\) should return string but returns string\\|false\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Shared\\\\ZipArchive\\:\\:open\\(\\) should return bool but returns int\\|true\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Offset 'dirname' does not exist on array\\{dirname\\?\\: string, basename\\: string, extension\\?\\: string, filename\\: string\\}\\.$#"
+ count: 3
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^PHPDoc tag @var for variable \\$zip contains unknown class PclZip\\.$#"
+ count: 6
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{\\$this\\(PhpOffice\\\\PhpWord\\\\Shared\\\\ZipArchive\\)\\|PclZip\\|ZipArchive, mixed\\} given\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Shared\\\\ZipArchive\\:\\:\\$zip has unknown class PclZip as its type\\.$#"
+ count: 1
+ path: src/PhpWord/Shared/ZipArchive.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\:\\:addFontStyle\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Font but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\:\\:addLinkStyle\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Font but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\:\\:addNumberingStyle\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Numbering but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\:\\:addParagraphStyle\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Paragraph but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\:\\:addTableStyle\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Table but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\:\\:addTitleStyle\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Font but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style.php
+
+ -
+ message: "#^Call to an undefined method object\\:\\:setStyleByArray\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Style/AbstractStyle.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\:\\:setFloatVal\\(\\) should return float\\|null but returns float\\|int\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/AbstractStyle.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\:\\:setNumericVal\\(\\) should return float\\|int\\|null but returns float\\|int\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/AbstractStyle.php
+
+ -
+ message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#"
+ count: 1
+ path: src/PhpWord/Style/AbstractStyle.php
+
+ -
+ message: "#^Unreachable statement \\- code above always terminates\\.$#"
+ count: 1
+ path: src/PhpWord/Style/AbstractStyle.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Border\\:\\:getBorderSize\\(\\) should return array\\ but returns array\\\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Border.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Cell\\:\\:getBgColor\\(\\) should return string but returns null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Cell.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Cell\\:\\:setUnit\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Cell.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Chart\\:\\:getMajorTickPosition\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Chart.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Chart\\:\\:setCategoryAxisTitle\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Chart.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Chart\\:\\:setValueAxisTitle\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Chart.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Chart\\:\\:setValueLabelPosition\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Chart.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Chart\\:\\:showAxisLabels\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Chart.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Chart\\:\\:showGridY\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Chart.php
+
+ -
+ message: "#^PHPDoc tag @param has invalid value \\(string\\)\\: Unexpected token \"\\\\n \\* \", expected variable at offset 250$#"
+ count: 1
+ path: src/PhpWord/Style/Chart.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Font\\:\\:setAllCaps\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Font but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Font.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Font\\:\\:setBgColor\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Table but return statement is missing\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Font.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Font\\:\\:setDoubleStrikethrough\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Font but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Font.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Font\\:\\:setSmallCaps\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Font but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Font.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Font\\:\\:setStrikethrough\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Font but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Font.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Font\\:\\:setSubScript\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Font but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Font.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Font\\:\\:setSuperScript\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Font but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Font.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Style\\\\Line\\:\\:\\$weight \\(int\\) does not accept float\\|int\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Line.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\ListItem\\:\\:getListTypeStyle\\(\\) should return array but empty return statement found\\.$#"
+ count: 1
+ path: src/PhpWord/Style/ListItem.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\ListItem\\:\\:getListTypeStyle\\(\\) should return array but return statement is missing\\.$#"
+ count: 1
+ path: src/PhpWord/Style/ListItem.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Paragraph\\:\\:setStyleValue\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Paragraph but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Paragraph.php
+
+ -
+ message: "#^Result of && is always false\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Paragraph.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Section\\:\\:setSettingValue\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\Section but returns PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Section.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\TOC\\:\\:setTabLeader\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\TOC but returns PhpOffice\\\\PhpWord\\\\Style\\\\Tab\\.$#"
+ count: 1
+ path: src/PhpWord/Style/TOC.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\TOC\\:\\:setTabPos\\(\\) should return PhpOffice\\\\PhpWord\\\\Style\\\\TOC but returns PhpOffice\\\\PhpWord\\\\Style\\\\Tab\\.$#"
+ count: 1
+ path: src/PhpWord/Style/TOC.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Table\\:\\:getBorderInsideHColor\\(\\) should return string but returns int\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Table.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Table\\:\\:getBorderInsideHSize\\(\\) should return int but returns int\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Table.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Table\\:\\:getBorderInsideVColor\\(\\) should return string but returns int\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Table.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Table\\:\\:getBorderInsideVSize\\(\\) should return int but returns int\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Table.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Table\\:\\:getBorderSize\\(\\) should return array\\ but returns array\\\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Table.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Table\\:\\:getCellMarginBottom\\(\\) should return int but returns int\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Table.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Table\\:\\:getCellMarginLeft\\(\\) should return int but returns int\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Table.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Table\\:\\:getCellMarginRight\\(\\) should return int but returns int\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Table.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Style\\\\Table\\:\\:getCellMarginTop\\(\\) should return int but returns int\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/Table.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Style\\\\TablePosition\\:\\:\\$bottomFromText \\(int\\) does not accept float\\|int\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/TablePosition.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Style\\\\TablePosition\\:\\:\\$leftFromText \\(int\\) does not accept float\\|int\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/TablePosition.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Style\\\\TablePosition\\:\\:\\$rightFromText \\(int\\) does not accept float\\|int\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/TablePosition.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Style\\\\TablePosition\\:\\:\\$tblpX \\(int\\) does not accept float\\|int\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/TablePosition.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Style\\\\TablePosition\\:\\:\\$tblpY \\(int\\) does not accept float\\|int\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/TablePosition.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Style\\\\TablePosition\\:\\:\\$topFromText \\(int\\) does not accept float\\|int\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Style/TablePosition.php
+
+ -
+ message: "#^Call to an undefined method object\\:\\:write\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Cannot access offset 'end' on array\\\\|true\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Cannot access offset 'start' on array\\\\|true\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:addImageToRelations\\(\\) has parameter \\$imageMimeType with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:addImageToRelations\\(\\) has parameter \\$imgPath with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:addImageToRelations\\(\\) has parameter \\$partFileName with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:addImageToRelations\\(\\) has parameter \\$rid with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:chooseImageDimension\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:chooseImageDimension\\(\\) has parameter \\$baseValue with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:chooseImageDimension\\(\\) has parameter \\$defaultValue with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:chooseImageDimension\\(\\) has parameter \\$inlineValue with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:fixImageWidthHeightRatio\\(\\) has parameter \\$actualHeight with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:fixImageWidthHeightRatio\\(\\) has parameter \\$actualWidth with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:fixImageWidthHeightRatio\\(\\) has parameter \\$height with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:fixImageWidthHeightRatio\\(\\) has parameter \\$width with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:getImageArgs\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:getImageArgs\\(\\) has parameter \\$varNameWithArgs with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:getNextRelationsIndex\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:getNextRelationsIndex\\(\\) has parameter \\$documentPartName with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:indexClonedVariables\\(\\) should return string but returns array\\, string\\|null\\>\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:prepareImageAttrs\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:prepareImageAttrs\\(\\) has parameter \\$replaceImage with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:prepareImageAttrs\\(\\) has parameter \\$varInlineArgs with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:setValueForPart\\(\\) should return string but returns array\\\\|string\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:setValueForPart\\(\\) should return string but returns array\\\\|string\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Parameter \\#1 \\$element of method PhpOffice\\\\PhpWord\\\\Writer\\\\Word2007\\\\Part\\\\Chart\\:\\:setElement\\(\\) expects PhpOffice\\\\PhpWord\\\\Element\\\\Chart, PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement given\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, array\\\\|string given\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, string given\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:\\$macroClosingChars has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:\\$macroOpeningChars has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:\\$tempDocumentFooters \\(array\\\\) does not accept string\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\TemplateProcessor\\:\\:\\$tempDocumentHeaders \\(array\\\\) does not accept string\\.$#"
+ count: 1
+ path: src/PhpWord/TemplateProcessor.php
+
+ -
+ message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/AbstractWriter.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\HTML\\\\Element\\\\AbstractElement\\:\\:write\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/HTML/Element/AbstractElement.php
+
+ -
+ message: "#^Variable \\$row in PHPDoc tag @var does not match assigned variable \\$rowStyle\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/HTML/Element/Table.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\ODText\\\\Element\\\\Field\\:\\:writeDefault\\(\\) has parameter \\$type with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/ODText/Element/Field.php
+
+ -
+ message: "#^Variable \\$row in PHPDoc tag @var does not match any variable in the foreach loop\\: \\$cell$#"
+ count: 1
+ path: src/PhpWord/Writer/ODText/Element/Table.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\ODText\\\\Element\\\\AbstractElement\\:\\:replaceTabs\\(\\) has parameter \\$text with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/ODText/Element/AbstractElement.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\ODText\\\\Element\\\\AbstractElement\\:\\:replaceTabs\\(\\) has parameter \\$xmlWriter with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/ODText/Element/AbstractElement.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\ODText\\\\Element\\\\Text\\:\\:writeChangeInsertion\\(\\) has parameter \\$start with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/ODText/Element/Text.php
+
+ -
+ message: "#^Call to an undefined method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement\\:\\:getParagraphStyle\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/ODText/Element/TextRun.php
+
+ -
+ message: "#^Call to an undefined method PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\:\\:setColumnWidths\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/ODText/Part/Content.php
+
+ -
+ message: "#^Parameter \\#1 \\$container of method PhpOffice\\\\PhpWord\\\\Writer\\\\ODText\\\\Part\\\\Content\\:\\:collectTrackedChanges\\(\\) expects PhpOffice\\\\PhpWord\\\\Element\\\\AbstractContainer, PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement given\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/ODText/Part/Content.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\ODText\\\\Part\\\\Content\\:\\:\\$imageParagraphStyles has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/ODText/Part/Content.php
+
+ -
+ message: "#^Call to an undefined method object\\:\\:write\\(\\)\\.$#"
+ count: 2
+ path: src/PhpWord/Writer/ODText/Part/Styles.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\ODText\\\\Part\\\\Styles\\:\\:cvttwiptostr\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/ODText/Part/Styles.php
+
+ -
+ message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\AbstractRenderer, string\\} given\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/PDF.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\:\\:\\$renderer \\(PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\AbstractRenderer\\) does not accept object\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/PDF.php
+
+ -
+ message: "#^Call to an undefined method PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\DomPDF\\:\\:loadHtml\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/PDF/DomPDF.php
+
+ -
+ message: "#^Call to an undefined method PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\DomPDF\\:\\:output\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/PDF/DomPDF.php
+
+ -
+ message: "#^Call to an undefined method PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\DomPDF\\:\\:render\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/PDF/DomPDF.php
+
+ -
+ message: "#^Call to an undefined method PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\DomPDF\\:\\:setPaper\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/PDF/DomPDF.php
+
+ -
+ message: "#^Class PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\DomPDF referenced with incorrect case\\: PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\Dompdf\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/PDF/DomPDF.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\DomPDF\\:\\:createExternalWriterInstance\\(\\) should return PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\DomPDF but returns Dompdf\\\\Dompdf\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/PDF/DomPDF.php
+
+ -
+ message: "#^Binary operation \"\\+\" between int\\|string and 1 results in an error\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/AbstractElement.php
+
+ -
+ message: "#^Parameter \\#1 \\$value of method PhpOffice\\\\PhpWord\\\\Writer\\\\RTF\\\\Style\\\\Font\\:\\:setNameIndex\\(\\) expects int, int\\|string given\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/AbstractElement.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\RTF\\\\Element\\\\AbstractElement\\:\\:\\$fontStyle \\(PhpOffice\\\\PhpWord\\\\Style\\\\Font\\) does not accept PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/AbstractElement.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\RTF\\\\Element\\\\AbstractElement\\:\\:\\$fontStyle \\(PhpOffice\\\\PhpWord\\\\Style\\\\Font\\) does not accept PhpOffice\\\\PhpWord\\\\Style\\\\Font\\|string\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/AbstractElement.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\RTF\\\\Element\\\\AbstractElement\\:\\:\\$paragraphStyle \\(PhpOffice\\\\PhpWord\\\\Style\\\\Paragraph\\) does not accept PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\|null\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/AbstractElement.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\RTF\\\\Element\\\\AbstractElement\\:\\:\\$paragraphStyle \\(PhpOffice\\\\PhpWord\\\\Style\\\\Paragraph\\) does not accept PhpOffice\\\\PhpWord\\\\Style\\\\Paragraph\\|string\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/AbstractElement.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\RTF\\\\Element\\\\AbstractElement\\:\\:\\$paragraphStyle \\(PhpOffice\\\\PhpWord\\\\Style\\\\Paragraph\\) does not accept null\\.$#"
+ count: 2
+ path: src/PhpWord/Writer/RTF/Element/AbstractElement.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\RTF\\\\Element\\\\Field\\:\\:write\\(\\) should return string but empty return statement found\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/Field.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\RTF\\\\Element\\\\Field\\:\\:writeDate\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/Field.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\RTF\\\\Element\\\\Field\\:\\:writeNumpages\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/Field.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\RTF\\\\Element\\\\Field\\:\\:writePage\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/Field.php
+
+ -
+ message: "#^Call to an undefined method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement\\:\\:getImageStringData\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/Image.php
+
+ -
+ message: "#^Call to an undefined method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement\\:\\:getStyle\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/Image.php
+
+ -
+ message: "#^Call to an undefined method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement\\:\\:getSource\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/Link.php
+
+ -
+ message: "#^Call to an undefined method PhpOffice\\\\PhpWord\\\\Element\\\\AbstractElement\\:\\:getText\\(\\)\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Element/Link.php
+
+ -
+ message: "#^Call to an undefined method object\\:\\:write\\(\\)\\.$#"
+ count: 2
+ path: src/PhpWord/Writer/RTF/Part/Document.php
+
+ -
+ message: "#^Binary operation \"\\+\" between int\\|string and 1 results in an error\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/RTF/Style/Border.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\Word2007\\\\Element\\\\AbstractElement\\:\\:write\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Element/AbstractElement.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\Word2007\\\\Element\\\\Field\\:\\:buildPropertiesAndOptions\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Element/Field.php
+
+ -
+ message: "#^Parameter \\#1 \\$content of method PhpOffice\\\\PhpWord\\\\Writer\\\\Word2007\\\\Element\\\\AbstractElement\\:\\:writeText\\(\\) expects string, bool\\|int\\|string given\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Element/FormField.php
+
+ -
+ message: "#^Parameter \\#3 \\$value of method PhpOffice\\\\PhpWord\\\\Shared\\\\XMLWriter\\:\\:writeElementBlock\\(\\) expects string\\|null, bool\\|int\\|string given\\.$#"
+ count: 3
+ path: src/PhpWord/Writer/Word2007/Element/FormField.php
+
+ -
+ message: "#^Parameter \\#3 \\$value of method PhpOffice\\\\PhpWord\\\\Shared\\\\XMLWriter\\:\\:writeElementBlock\\(\\) expects string\\|null, int given\\.$#"
+ count: 4
+ path: src/PhpWord/Writer/Word2007/Element/FormField.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\Word2007\\\\Element\\\\ParagraphAlignment\\:\\:\\$attributes has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Element/ParagraphAlignment.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\Word2007\\\\Element\\\\ParagraphAlignment\\:\\:\\$name has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Element/ParagraphAlignment.php
+
+ -
+ message: "#^Parameter \\#2 \\$content of method PhpOffice\\\\PhpWord\\\\Shared\\\\XMLWriter\\:\\:writeElement\\(\\) expects string\\|null, bool\\|int\\|string given\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Element/SDT.php
+
+ -
+ message: "#^Parameter \\#3 \\$value of method PhpOffice\\\\PhpWord\\\\Shared\\\\XMLWriter\\:\\:writeElementBlock\\(\\) expects string\\|null, int\\<100000000, 999999999\\> given\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Element/SDT.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\Word2007\\\\Element\\\\TableAlignment\\:\\:\\$attributes has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Element/TableAlignment.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\Word2007\\\\Element\\\\TableAlignment\\:\\:\\$name has no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Element/TableAlignment.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\PhpWord\\:\\:addBookmark\\(\\) invoked with 0 parameters, 1 required\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Element/Title.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\Word2007\\\\Part\\\\Chart\\:\\:writeAxisTitle\\(\\) has parameter \\$title with no type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Part/Chart.php
+
+ -
+ message: "#^Parameter \\#3 \\$value of method PhpOffice\\\\PhpWord\\\\Shared\\\\XMLWriter\\:\\:writeElementBlock\\(\\) expects string\\|null, int given\\.$#"
+ count: 9
+ path: src/PhpWord/Writer/Word2007/Part/Chart.php
+
+ -
+ message: "#^Parameter \\#3 \\$value of method PhpOffice\\\\PhpWord\\\\Shared\\\\XMLWriter\\:\\:writeElementBlock\\(\\) expects string\\|null, int\\<0, max\\> given\\.$#"
+ count: 4
+ path: src/PhpWord/Writer/Word2007/Part/Chart.php
+
+ -
+ message: "#^Parameter \\#1 \\$string of function md5 expects string, int\\<0, max\\> given\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Part/Numbering.php
+
+ -
+ message: "#^Parameter \\#1 \\$haystack of function strpos expects string, int given\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Part/Rels.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWord\\\\Writer\\\\Word2007\\\\Style\\\\AbstractStyle\\:\\:write\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Style/AbstractStyle.php
+
+ -
+ message: "#^Parameter \\#1 \\$styleName of static method PhpOffice\\\\PhpWord\\\\Style\\:\\:getStyle\\(\\) expects string, PhpOffice\\\\PhpWord\\\\Style\\\\AbstractStyle\\|string given\\.$#"
+ count: 1
+ path: src/PhpWord/Writer/Word2007/Style/Font.php
+
+ -
+ message: "#^Call to an undefined method object\\:\\:read\\(\\)\\.$#"
+ count: 1
+ path: tests/PhpWordTests/AbstractTestReader.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWordTests\\\\AbstractTestReader\\:\\:\\$parts has no type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/AbstractTestReader.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\AbstractWebServerEmbedded\\:\\:getBaseUrl\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/AbstractWebServerEmbedded.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\AbstractWebServerEmbedded\\:\\:getRemoteBmpImageUrl\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/AbstractWebServerEmbedded.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\AbstractWebServerEmbedded\\:\\:getRemoteGifImageUrl\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/AbstractWebServerEmbedded.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\AbstractWebServerEmbedded\\:\\:getRemoteImageUrl\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/AbstractWebServerEmbedded.php
+
+ -
+ message: "#^Property PhpOffice\\\\PhpWordTests\\\\AbstractWebServerEmbedded\\:\\:\\$httpServer has no type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/AbstractWebServerEmbedded.php
+
+ -
+ message: "#^Parameter \\#1 \\$width of class PhpOffice\\\\PhpWord\\\\Element\\\\Cell constructor expects int\\|null, string given\\.$#"
+ count: 2
+ path: tests/PhpWordTests/Element/CellTest.php
+
+ -
+ message: "#^Parameter \\#2 \\$style of class PhpOffice\\\\PhpWord\\\\Element\\\\Cell constructor expects array\\|PhpOffice\\\\PhpWord\\\\Style\\\\Cell\\|null, int given\\.$#"
+ count: 2
+ path: tests/PhpWordTests/Element/CellTest.php
+
+ -
+ message: "#^Parameter \\#1 \\$text of method PhpOffice\\\\PhpWord\\\\Element\\\\Field\\:\\:setText\\(\\) expects PhpOffice\\\\PhpWord\\\\Element\\\\TextRun\\|string\\|null, array given\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/FieldTest.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\Element\\\\ImageTest\\:\\:testImages\\(\\) has parameter \\$createFunction with no type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/ImageTest.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\Element\\\\ImageTest\\:\\:testImages\\(\\) has parameter \\$extension with no type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/ImageTest.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\Element\\\\ImageTest\\:\\:testImages\\(\\) has parameter \\$imageFunction with no type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/ImageTest.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\Element\\\\ImageTest\\:\\:testImages\\(\\) has parameter \\$imageQuality with no type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/ImageTest.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\Element\\\\ImageTest\\:\\:testImages\\(\\) has parameter \\$source with no type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/ImageTest.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\Element\\\\ImageTest\\:\\:testImages\\(\\) has parameter \\$type with no type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/ImageTest.php
+
+ -
+ message: "#^Parameter \\#1 \\$source of class PhpOffice\\\\PhpWord\\\\Element\\\\Image constructor expects string, string\\|false given\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/ImageTest.php
+
+ -
+ message: "#^Parameter \\#1 \\$string of function md5 expects string, string\\|false given\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/ImageTest.php
+
+ -
+ message: "#^Parameter \\#1 \\$string of function ucfirst expects string, string\\|false given\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/ImageTest.php
+
+ -
+ message: "#^Parameter \\#3 \\$watermark of class PhpOffice\\\\PhpWord\\\\Element\\\\Image constructor expects bool, null given\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/ImageTest.php
+
+ -
+ message: "#^Parameter \\#2 \\$style of class PhpOffice\\\\PhpWord\\\\Element\\\\Section constructor expects array\\|PhpOffice\\\\PhpWord\\\\Style\\|string\\|null, PhpOffice\\\\PhpWord\\\\Style\\\\Section given\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/SectionTest.php
+
+ -
+ message: "#^Parameter \\#1 \\$text of class PhpOffice\\\\PhpWord\\\\Element\\\\Title constructor expects PhpOffice\\\\PhpWord\\\\Element\\\\TextRun\\|string, PhpOffice\\\\PhpWord\\\\Element\\\\PageBreak given\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Element/TitleTest.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\Escaper\\\\RtfEscaper2Test\\:\\:escapestring\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Escaper/RtfEscaper2Test.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\Escaper\\\\RtfEscaper2Test\\:\\:escapestring\\(\\) has parameter \\$str with no type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Escaper/RtfEscaper2Test.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\Escaper\\\\RtfEscaper2Test\\:\\:expect\\(\\) has no return type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Escaper/RtfEscaper2Test.php
+
+ -
+ message: "#^Method PhpOffice\\\\PhpWordTests\\\\Escaper\\\\RtfEscaper2Test\\:\\:expect\\(\\) has parameter \\$str with no type specified\\.$#"
+ count: 1
+ path: tests/PhpWordTests/Escaper/RtfEscaper2Test.php
+
+ -
+ message: "#^Parameter \\#1 \\$expected of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) expects class\\-string\\