From e07d8ec10a5753f4c163e6c54ee92216a5aacd53 Mon Sep 17 00:00:00 2001 From: freek Date: Wed, 4 Mar 2020 10:31:10 +0100 Subject: [PATCH] wip --- .travis.yml | 39 --------------------------------------- FUNDING.yml | 1 + README.md | 23 +++++++---------------- 3 files changed, 8 insertions(+), 55 deletions(-) delete mode 100644 .travis.yml create mode 100644 FUNDING.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b346367..0000000 --- a/.travis.yml +++ /dev/null @@ -1,39 +0,0 @@ -cache: - directories: - - $HOME/.composer/cache - -language: php - -env: - global: - - COVERAGE=0 - -matrix: - include: - - php: 7.2 - env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest' - - php: 7.2 - env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable' - - php: 7.2 - env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-lowest' - - php: 7.2 - env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-stable' - - php: 7.3 - env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest' - - php: 7.3 - env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable' - - php: 7.3 - env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-lowest' - - php: 7.3 - env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-stable' - fast_finish: true - -before_script: - - composer config discard-changes true - -before_install: - - travis_retry composer self-update - - travis_retry composer require "laravel/framework:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" --no-interaction --no-update - -install: - - travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction --no-suggest diff --git a/FUNDING.yml b/FUNDING.yml new file mode 100644 index 0000000..636ef53 --- /dev/null +++ b/FUNDING.yml @@ -0,0 +1 @@ +custom: https://spatie.be/open-source/support-us diff --git a/README.md b/README.md index 13f8b35..352c519 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Add links to Laravel API resources [![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/laravel-resource-links.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-resource-links) -[![Build Status](https://travis-ci.org/spatie/laravel-resource-links.svg?branch=master)](https://travis-ci.org/spatie/laravel-resource-links) +![GitHub Workflow Status](https://img.shields.io/github/workflow/status/spatie/laravel-resource-links/run-tests?label=tests) [![Quality Score](https://img.shields.io/scrutinizer/g/spatie/laravel-resource-links.svg?style=flat-square)](https://scrutinizer-ci.com/g/spatie/laravel-resource-links) [![StyleCI](https://github.styleci.io/repos/181018859/shield?branch=master)](https://github.styleci.io/repos/181018859) [![Total Downloads](https://img.shields.io/packagist/dt/spatie/laravel-resource-links.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-resource-links) @@ -60,6 +60,12 @@ Now when creating a `UserResource` collection, you will have all the links from } ``` +## Support us + +We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us). + +We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards). + ## Why include links in your resources? Let's say you're building a single-page application or an application built with [Inertia](https://inertiajs.com), then you have a PHP application running at the backend and a Javascript application at the front. These applications communicate with each other via an api but what if the frontend wants to route a user to another page? @@ -88,26 +94,11 @@ Please see [CONTRIBUTING](https://github.com/spatie/laravel-resource-links/blob/ If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker. -## Postcardware - -You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. - -Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium. - -We publish all received postcards [on our company website](https://spatie.be/en/opensource/postcards). - ## Credits - [Ruben Van Assche](https://github.com/rubenvanassche) - [All Contributors](https://github.com/spatie/laravel-resource-links/contributors) -## Support us - -Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource). - -Does your business depend on our contributions? Reach out and support us on [Patreon](https://www.patreon.com/spatie). -All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff. - ## License The MIT License (MIT). Please see [License File](https://github.com/spatie/laravel-resource-links/blob/master/LICENSE.md) for more information.