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
18 changes: 13 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
/.git* export-ignore
/.php-cs-fixer.dist.php export-ignore
/phpstan.dist.neon export-ignore
/phpunit.dist.xml export-ignore
/tests/ export-ignore
* text=auto eol=lf

/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.php-cs-fixer.dist.php export-ignore
/docs export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore

/docs/** linguist-documentation
/tests/Fixtures/** -linguist-detectable
15 changes: 3 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ "*" ]
branches: ["*"]
pull_request:
branches: [ "*" ]
branches: ["*"]
workflow_dispatch:

permissions:
Expand All @@ -15,26 +15,17 @@ concurrency:
cancel-in-progress: true

jobs:

cs:
uses: altophp/.github/.github/workflows/CS.yml@main
# with:
# php-version: '8.5'
# composer-validate: true
# php-cs-fixer-args: '--diff --dry-run'

sa:
uses: altophp/.github/.github/workflows/SA.yml@main
# with:
# php-version: '8.5'
# phpstan-args: 'analyse --no-progress --memory-limit=-1'

tests:
strategy:
fail-fast: false
matrix:
php: ['8.4', '8.5']
php: ["8.4", "8.5"]
uses: altophp/.github/.github/workflows/tests.yml@main
with:
php-version: ${{ matrix.php }}
# phpunit-args: '--colors=never'
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/.phpunit.cache/
/vendor/
/.php-cs-fixer.cache
/composer.lock
/phpstan.neon
/phpunit.xml
/.phpunit.cache/
/.phpunit.result.cache
/.php-cs-fixer.cache
/coverage/
/coverage.xml
/clover.xml
23 changes: 11 additions & 12 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
<?php

declare(strict_types=1);

$licence = <<<'EOF'
This file is part of the ALTO library.

© 2026present Simon André
© 2026-present Simon André

For full copyright and license information, please see
the LICENSE file distributed with this source code.
EOF;

$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude([
'var/',
])
;
$finder = PhpCsFixer\Finder::create()
->in([__DIR__.'/src', __DIR__.'/tests'])
->exclude('Fixtures');

return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'@PER-CS' => true,
'@Symfony' => true,
'@PER-CS2.0' => true,
'declare_strict_types' => true,
'header_comment' => ['header' => $licence],
'no_unused_imports' => true,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
'phpdoc_line_span' => ['const' => 'multi', 'property' => 'multi', 'method' => 'multi'],
])
;
->setFinder($finder);
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## [Unreleased]

- Add documentation.

## [1.0.0] - 2026-01-17

* Initial release
- Initial release.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2026 Simon André
Copyright (c) 2026-present Simon André

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading