okaufmann/qwertee-php

Simple client to access Qwertees (https://www.qwertee.com) todays and last chance tees

v1.0.1 2017-02-18 10:50 UTC

README

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License

Simple client to access Qwertees todays and last chance tees

Installation

PHP 7.0+ required. Although Components of Laravel were used, Laravel itself is not required.

To get the latest version of Package, simply require the project using Composer:

$ composer require okaufmann/qwertee-php

Usage

This Package basically provide the following two methods.

using Okaufmann\Qwertee\Qwertee

class HomeController
{

    public function index()
    {
        $today = Qwertee::today();
        
        $lastChance = Qwertee::lastChance();
    }
}

The Tees will be returned as a Laravel Collection like the following:

[
    // ..
    [
        "title" => "Chaos and Disobey",
        "zoom" => "https://cdn.qwertee.com/images/designs/zoom/97594.jpg",
        "mens" => "https://cdn.qwertee.com/images/designs/mens/97594.jpg",
        "womens" => "https://cdn.qwertee.com/images/designs/womens/97594.jpg",
        "kids" => "https://cdn.qwertee.com/images/designs/kids/97594.jpg",
        "hoodie" => "https://cdn.qwertee.com/images/designs/hoodie/97594.jpg",
        "sweater" => "https://cdn.qwertee.com/images/designs/sweater/97594.jpg",
        "releasedAt" => "2016-09-10"
    ],
    // ...
]
Further Information

There are other classes in this package that are not documented here. This is because they are not intended for public use and are used internally by this package.

License

This project and the Laravel framework are open-sourced software licensed under the MIT license.