Skip to content

Instantly share code, notes, and snippets.

Austin Maddox AustinMaddox

Block or report user

Report or block AustinMaddox

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AustinMaddox
AustinMaddox / TestCase.php
Created Dec 21, 2017
Force the use of only one "test-tenant" in phpunit tests
View TestCase.php
<?php
namespace Tests;
use Hyn\Tenancy\Contracts\Repositories\HostnameRepository;
use Hyn\Tenancy\Contracts\Repositories\WebsiteRepository;
use Hyn\Tenancy\Environment;
use Hyn\Tenancy\Models\Hostname;
use Hyn\Tenancy\Models\Website;
use Illuminate\Foundation\Testing\DatabaseTransactions;
@AustinMaddox
AustinMaddox / reverse_fitment_lookup_service_example.php
Last active Aug 29, 2015
Reverse fitment lookup service PHP example. The WPS reverse fitment web service returns vehicle data given one particular WPS part number. The output format is JSON. Below is a full example of how to do this via PHP using cURL.
View reverse_fitment_lookup_service_example.php
<?php error_reporting(E_ALL | E_STRICT); ?>
<!DOCTYPE html>
<html>
<head>
<title>Reverse fitment example</title>
</head>
<body>
<?php
// Parameters to send the web service program.
// Example: http://www.example.com/reverse_fitment_lookup_service_example.php?DEALER=###&PASSWORD=###&ITEM=2-b9es&OUTPUT=json
@AustinMaddox
AustinMaddox / fitment_part_number_request_service_example.php
Last active Dec 21, 2015
Fitment part number request service PHP example.The WPS Fitment Part Number Request web service is meant to find all the parts associated to a single vehicle. Below is a full example of how to do this via PHP using cURL.
View fitment_part_number_request_service_example.php
<?php error_reporting(E_ALL | E_STRICT); ?>
<!DOCTYPE html>
<html>
<head>
<title>Fitment example</title>
</head>
<body>
<?php
// Parameters to send the web service program.
// Example: http://www.example.com/fitment_part_number_request_service_example.php?DEALER=###&PASSWORD=###&FITMENT=HONDA HON8300 2012&OUTPUT=json
You can’t perform that action at this time.