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
17 changes: 5 additions & 12 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,18 @@ jobs:
max-parallel: 3
matrix:
php:
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
composer:
- 2
- 8.4
composer:
- 2
name: Test - php:${{ matrix.php }}; composer:${{ matrix.composer }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@master
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, gd, pdo_mysql, json, mbstring, pcre, session
ini-values: post_max_size=256M
coverage: none
tools: composer:v${{ matrix.composer }}
- name: Composer validate
Expand Down Expand Up @@ -71,4 +64,4 @@ jobs:
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60 changes: 38 additions & 22 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,40 @@
{
"name": "imponeer/toarray-interface",
"description": "PHP library that provides toArray interface, that could be used everywhere where you need to convert object into array and make sure that to that toArray function is because of same interface",
"type": "library",
"license": "MIT",
"keywords": [
"toArray",
"interface"
],
"authors": [
{
"name": "Raimondas Rimkevičius",
"email": "github@mekdrop.name"
}
],
"autoload": {
"psr-4": {
"Imponeer\\": "src/"
}
},
"require": {
"php": ">=7.0"
}
"name": "imponeer/toarray-interface",
"description": "A PHP interface defining a standard method for converting objects to arrays. Ensures consistent method naming and return type for array conversion across different classes.",
"type": "library",
"license": "MIT",
"keywords": [
"toarray",
"interface",
"contract",
"array-conversion",
"object-conversion",
"serializable",
"arrayable",
"php-interface"
],
"homepage": "https://github.com/imponeer/toarray-interface",
"support": {
"issues": "https://github.com/imponeer/toarray-interface/issues",
"source": "https://github.com/imponeer/toarray-interface"
},
"authors": [
{
"name": "Raimondas Rimkevičius",
"email": "github@mekdrop.name",
"homepage": "https://mekdrop.name",
"role": "Developer"
}
],
"require": {
"php": ">=8.3"
},
"autoload": {
"psr-4": {
"Imponeer\\": "src/"
}
},
"config": {
"sort-packages": true
}
}