Skip to content

Commit

Permalink
feat: v1 features
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed May 17, 2024
1 parent 2febfca commit db98c2b
Show file tree
Hide file tree
Showing 49 changed files with 11,211 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[*]
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[{*.php,*.xml,*.xml.dist,*.rss}]
indent_size = 4
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [phanan]
35 changes: 35 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Unit Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.1, 8.2 ]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- name: Install PHP dependencies
uses: ramsey/composer-install@v3
with:
composer-options: --prefer-dist
- name: Run code style checker
run: composer cs
- name: Run static analysis
run: composer analyze -- --no-progress
- name: Run tests
run: composer test
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.phpunit.cache/
.idea/
.phpunit.result.cache
vendor/
59 changes: 59 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"name": "phanan/podcast-feed-parser",
"description": "Parse podcast feeds with PHP following PSP-1 Podcast RSS Standard",
"authors": [
{
"name": "Phan An",
"email": "[email protected]"
}
],
"keywords": [
"podcast",
"xml",
"rss",
"feed",
"parser",
"psp-1"
],
"license": "MIT",
"type": "library",
"require": {
"php": ">=8.1",
"saloonphp/xml-wrangler": "^1.2",
"illuminate/collections": "^10.48",
"illuminate/http": "^10.48",
"illuminate/support": "^10.48",
"guzzlehttp/guzzle": "^7.8"
},
"require-dev": {
"phpunit/phpunit": ">=10.5",
"laravel/pint": "^1.15",
"larastan/larastan": "^2.9",
"orchestra/testbench": "*",
"laravel/tinker": "^2.9"
},
"scripts": {
"test": "phpunit tests",
"cs": "pint --test",
"cs:fix": "pint",
"analyze": "phpstan analyse"
},
"post-install-cmd": [
"composer dump-autoload"
],
"autoload": {
"psr-4": {
"PhanAn\\PodcastFeedParser\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"config": {
"preferred-install": "dist",
"optimize-autoloader": true
},
"minimum-stability": "stable"
}
Loading

0 comments on commit db98c2b

Please sign in to comment.