Skip to content

Commit

Permalink
Merge pull request #24 from still-code/updates
Browse files Browse the repository at this point in the history
updates
  • Loading branch information
atmonshi authored Apr 15, 2023
2 parents 90c2fac + 15a56d2 commit 34bd8ff
Show file tree
Hide file tree
Showing 21 changed files with 8,103 additions and 105 deletions.
8 changes: 4 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
14 changes: 10 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Ignore all test and documentation with "export-ignore".
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/.styleci.yml export-ignore
/.scrutinizer.yml export-ignore
/art export-ignore
/docs export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.github/** export-ignore
/.php_cs.dist.php export-ignore
/psalm.xml export-ignore
/psalm.xml.dist export-ignore
/testbench.yaml export-ignore
/UPGRADING.md export-ignore
/phpstan.neon.dist export-ignore
/phpstan-baseline.neon export-ignore
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
14 changes: 0 additions & 14 deletions .github/workflows/codacy-analysis.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected].0
uses: dependabot/[email protected].6
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand All @@ -29,4 +29,4 @@ jobs:
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
27 changes: 27 additions & 0 deletions .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Fix PHP code style issues

on:
push:
paths:
- '**.php'

permissions:
contents: write

jobs:
php-code-styling:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/[email protected]

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling
26 changes: 26 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PHPStan

on:
push:
paths:
- '**.php'
- 'phpstan.neon.dist'

jobs:
phpstan:
name: phpstan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v2

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
5 changes: 4 additions & 1 deletion .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [released]

permissions:
contents: write

jobs:
update:
runs-on: ubuntu-latest
Expand All @@ -25,4 +28,4 @@ jobs:
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
file_pattern: CHANGELOG.md
18 changes: 13 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
build
composer.lock
docs
vendor
coverage
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.phpunit.result.cache
docker-compose.override.yml
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defects":[],"times":{"StillCode\\ArPhpLaravel\\Tests\\ExampleTest::true_is_true":0.008,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::it_is_not_arabic_text":0.003,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::it_is_arabic_text":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::int2str_convert_number_to_text":0.002,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::int2str_cant_convert_text_to_number":0.003,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::str2int_convert_text_to_number":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::str2int_cant_convert_number_to_text":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::check_is_not_female":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::check_is_female":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::guess_gender_male":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::guess_gender_female":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::it_convert_mony_to_text":0.001,"StillCode\\ArPhpLaravel\\Tests\\arPhpTest::it_can_translate_text":0.001}}
1 change: 0 additions & 1 deletion .phpunit.result.cache

This file was deleted.

19 changes: 0 additions & 19 deletions .scrutinizer.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .styleci.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<p align="center"><img src="https://banners.beyondco.de/AR-php%20for%20Laravel.png?theme=light&packageManager=composer+require&packageName=still-code%2Far-php-laravel&pattern=wiggle&style=style_2&description=wrapper+for+Ar-PHP+Library+to+use+with+laravel&md=1&showWatermark=1&fontSize=100px&images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg&widths=600&heights=650" width="600"></p>
<p align="center"><img src="https://banners.beyondco.de/Laravel%20Ar-PHP.png?theme=light&packageManager=composer+require&packageName=still-code%2Far-php-laravel&pattern=brickWall&style=style_1&description=Ar-PHP+wrapper+for+laravel&md=1&showWatermark=1&fontSize=125px&images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg" width="600"></p>

<p align="center">
<a href="https://packagist.org/packages/still-code/ar-php-laravel"><img src="https://img.shields.io/packagist/v/still-code/ar-php-laravel" /></a>
<a href="https://travis-ci.com/still-code/ar-php-laravel"><img src="https://img.shields.io/travis/com/still-code/ar-php-laravel" /></a>
<a href="https://github.styleci.io/repos/354853609?branch=main"><img src="https://github.styleci.io/repos/354853609/shield?branch=main" /></a>
<a href="https://packagist.org/packages/still-code/ar-php-laravel"><img src="https://img.shields.io/packagist/dt/still-code/ar-php-laravel" /></a>
<a href="https://github.com/still-code/ar-php-laravel"><img src="https://img.shields.io/github/stars/still-code/ar-php-laravel" /></a>
<a href="https://www.codacy.com/gh/still-code/ar-php-laravel/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=still-code/ar-php-laravel&amp;utm_campaign=Badge_Grade"><img src="https://app.codacy.com/project/badge/Grade/c9a1e0c873f346a5839222d5e19499fc"/></a>
<a href="https://github.com/still-code/ar-php-laravel/actions?query=workflow%3Arun-tests+branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/still-code/ar-php-laravel/run-tests.yml?branch=main&label=tests&style=flat-square" /></a>
<a href="https://github.com/still-code/ar-php-laravel/actions?query=workflow%3AFix+PHP+code+style+issues+branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/still-code/ar-php-laravel/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square" /></a>
</p>

# laravel package for the Ar-PHP Project
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"khaled.alshamaa/ar-php": "^6.3"
},
"require-dev": {
"laravel/pint": "^1.8",
"nunomaduro/larastan": "^2.0",
"orchestra/testbench": "^7.0|^8.0",
"phpunit/phpunit": "^9.5|^10.1"
},
Expand Down
Loading

0 comments on commit 34bd8ff

Please sign in to comment.