Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #3

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
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
Empty file modified .editorconfig
100644 → 100755
Empty file.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.3']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, json, fileinfo, pdo
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
# Use composer.json for key, if composer.lock is not committed.
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
#key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text
- name: Run phpcs
run: ./vendor/bin/phpcs
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .htaccess
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
39 changes: 25 additions & 14 deletions composer.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,30 @@
"homepage": "http://momentphp.kminek.pl",
"keywords": ["framework", "momentphp"],
"require": {
"slim/slim": "3.3.*",
"illuminate/support": "5.1.*",
"illuminate/events": "5.1.*",
"illuminate/database": "5.1.*",
"illuminate/cache": "5.1.*",
"illuminate/filesystem": "5.1.*",
"smarty/smarty": "3.1.*",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see you're not a fan of Smarty :)

"twig/twig": "1.24.*",
"monolog/monolog": "1.18.*",
"filp/whoops": "2.1.*",
"symfony/var-dumper": "3.0.*",
"willdurand/negotiation": "2.0.*",
"soundasleep/html2text": "0.2.*"
"php": "^7.4|^8.0",
"ext-json": "*",
"ext-mbstring": "*",
"ext-fileinfo": "*",
"ext-pdo": "*",
"slim/slim": "4.*",
"slim/psr7": "*",
"pimple/pimple": "^3.0",
"zeuxisoo/slim-whoops": "0.7.*",
"illuminate/support": "8.*",
"illuminate/events": "8.*",
"illuminate/database": "8.*",
"illuminate/cache": "8.*",
"illuminate/filesystem": "8.*",
"twig/twig": "3.*",
"monolog/monolog": "2.*",
"filp/whoops": "2.*",
"symfony/var-dumper": "5.*",
"willdurand/negotiation": "3.*",
"soundasleep/html2text": "1.*"
},
"require-dev": {
"phpunit/phpunit": "4.*"
"phpunit/phpunit": "9.*",
"squizlabs/php_codesniffer": "3.*"
},
"autoload": {
"psr-4": {
Expand All @@ -34,6 +42,9 @@
"momentphp\\tests\\": "tests"
}
},
"config": {
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable" : true
}
Expand Down
Empty file modified index.php
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<ruleset name="PSR12">
<description>PSR12</description>
<file>src</file>
<rule ref="PSR12"/>
</ruleset>
Empty file modified phpunit.xml
100644 → 100755
Empty file.
Loading