Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/doctum.php export-ignore
21 changes: 0 additions & 21 deletions .github/workflows/apigen.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: API Docs

on:
push:
branches: [master]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- name: Generate API docs
run: composer docs

- name: Setup Pages
uses: actions/configure-pages@v6

- name: Upload docs
uses: actions/upload-pages-artifact@v5
with:
path: docs

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:

strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4', '8.0']
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6']
os: ['ubuntu-latest', 'windows-latest']
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v7

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
composer.phar
vendor/
composer.lock
apigen.phar
docs/
nbproject/
.phpunit.result.cache
doctum.phar
4 changes: 0 additions & 4 deletions apigen.neon

This file was deleted.

7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
}
},

"scripts": {
"docs": [
"@php -r \"is_file('doctum.phar') || passthru('curl -fsSL -o doctum.phar https://doctum.long-term.support/releases/5/doctum.phar');\"",
"@php doctum.phar update doctum.php --no-progress"
]
},

"funding": [
{
"url": "https://github.com/sponsors/splitbrain",
Expand Down
25 changes: 25 additions & 0 deletions doctum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

/**
* Doctum configuration for the API documentation of the public library interface
*/

use Doctum\Doctum;
use Doctum\Parser\Filter\PublicFilter;
use Symfony\Component\Finder\Finder;

$iterator = Finder::create()
->files()
->name('*.php')
->in(__DIR__ . '/src');

$doctum = new Doctum($iterator, [
'title' => 'PHPArchive',
'build_dir' => __DIR__ . '/docs',
'cache_dir' => sys_get_temp_dir() . '/php-archive-doctum',
]);
$doctum['filter'] = function () {
return new PublicFilter();
};

return $doctum;
63 changes: 0 additions & 63 deletions generate-api.sh

This file was deleted.

1 change: 0 additions & 1 deletion src/FileInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* stores meta data about a file in an Archive
*
* @author Andreas Gohr <andi@splitbrain.org>
* @package splitbrain\PHPArchive
* @license MIT
*/
class FileInfo
Expand Down
1 change: 0 additions & 1 deletion src/Tar.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* encoding and can not be recognized as such.
*
* @author Andreas Gohr <andi@splitbrain.org>
* @package splitbrain\PHPArchive
* @license MIT
*/
class Tar extends Archive
Expand Down
1 change: 0 additions & 1 deletion src/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* converted from CP437 otherwise, which is the encoding the format prescribes for unflagged names.
*
* @author Andreas Gohr <andi@splitbrain.org>
* @package splitbrain\PHPArchive
* @license MIT
*/
class Zip extends Archive
Expand Down