Skip to content

Commit 0975087

Browse files
author
bryanadamloh97
committed
2 parents b82fb65 + e8c4f2d commit 0975087

File tree

4 files changed

+61
-4
lines changed

4 files changed

+61
-4
lines changed

.github/workflows/ci-test.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: run-tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
run-tests:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
php: [7.3, 7.4, 8.0]
13+
laravel: [6.*, 7.*, 8.*]
14+
15+
name: PHP${{ matrix.php }} - Laravel ${{ matrix.laravel }}
16+
17+
steps:
18+
- name: Update apt
19+
run: sudo apt-get update --fix-missing
20+
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
coverage: none
29+
30+
- name: Setup Problem Matches
31+
run: |
32+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
33+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
34+
35+
- name: Install dependencies
36+
run: |
37+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
38+
composer update --prefer-dist --no-interaction --no-suggest
39+
40+
- name: Execute tests
41+
run: vendor/bin/phpunit

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
**1.0.0 (released 2021-06-15):**
4+
- Release for production.
5+
- Added a ```URLShortener``` facade.
6+
- Updated documentation
7+
- Updated tests and Github Actions configuration for PHP 7.3, PHP 7.4 and PHP 8.0 testing.

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Laravel URL Shortener
22
Powerful URL shortening tool using different drivers for your Laravel projects
33

4+
<p>
5+
<a href="https://packagist.org/packages/codeofdigital/laravel-url-shortener"><img src="https://img.shields.io/packagist/v/codeofdigital/laravel-url-shortener" alt="Latest Version on Packagist"></a>
6+
<a href="https://github.com/codeofdigital/laravel-url-shortener"><img src="https://img.shields.io/github/v/release/codeofdigital/laravel-url-shortener" alt="Latest Release on GitHub"></a>
7+
<a href="https://github.com/codeofdigital/laravel-url-shortener"><img src="https://img.shields.io/github/workflow/status/codeofdigital/laravel-url-shortener/run-tests" alt="Build Status"></a>
8+
<a href="https://packagist.org/packages/codeofdigital/laravel-url-shortener"><img src="https://img.shields.io/packagist/php-v/codeofdigital/laravel-url-shortener" alt="PHP from Packagist"></a>
9+
<a href="https://github.com/codeofdigital/laravel-url-shortener/blob/master/LICENSE.md"><img src="https://img.shields.io/github/license/codeofdigital/laravel-url-shortener" alt="GitHub license"></a>
10+
</p>
11+
412
## Table of Contents
513

614
- [Overview](#overview)
@@ -25,7 +33,7 @@ and pricing for different usages.
2533
The package has been developed to work with the following versions and minimum requirements:
2634

2735
- PHP 7.2 or higher
28-
- Laravel 5.5 or higher
36+
- Laravel 6.0 or higher
2937

3038
### Install Pacakge
3139
You can install the package via the latest Composer:

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"name": "codeofdigital/laravel-url-shortener",
33
"description": "Powerful URL shoterning tools using different drivers for your Laravel projects",
4+
"homepage": "https://github.com/codeofdigital/laravel-url-shortener",
45
"keywords": [
6+
"codeofdigital",
57
"laravel",
68
"url",
79
"url-shortening",
@@ -23,15 +25,14 @@
2325
}
2426
],
2527
"require": {
26-
"php": "^7.2",
28+
"php": "^7.2|^8.0",
2729
"guzzlehttp/guzzle": "^6.2 || ^7.0",
2830
"guzzlehttp/promises": "^1.0",
2931
"guzzlehttp/psr7": "^1.4",
30-
"illuminate/support": "^5.1 || ^6.0 || ^7.0 || ^8.0",
3132
"psr/http-message": "^1.0"
3233
},
3334
"require-dev": {
34-
"illuminate/routing": "^5.1 || ^6.0 || ^7.0",
35+
"illuminate/routing": "^5.1 || ^6.0 || ^7.0 || ^8.0",
3536
"phpunit/phpunit": "^8.2"
3637
},
3738
"autoload": {

0 commit comments

Comments
 (0)