Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

Commit

Permalink
transfer ownership to artisanry
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Jun 4, 2019
1 parent 579f0a3 commit 3b89550
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 77 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) Brian Faust <hello@brianfaust.me>
Copyright (c) Brian Faust <hello@basecode.sh>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
20 changes: 10 additions & 10 deletions README.md
@@ -1,18 +1,18 @@
# Laravel Basket

[![Build Status](https://img.shields.io/travis/faustbrian/Laravel-Basket/master.svg?style=flat-square)](https://travis-ci.org/faustbrian/Laravel-Basket)
[![PHP from Packagist](https://img.shields.io/packagist/php-v/faustbrian/laravel-basket.svg?style=flat-square)]()
[![Latest Version](https://img.shields.io/github/release/faustbrian/Laravel-Basket.svg?style=flat-square)](https://github.com/faustbrian/Laravel-Basket/releases)
[![License](https://img.shields.io/packagist/l/faustbrian/Laravel-Basket.svg?style=flat-square)](https://packagist.org/packages/faustbrian/Laravel-Basket)
[![Build Status](https://img.shields.io/travis/artisanry/Basket/master.svg?style=flat-square)](https://travis-ci.org/artisanry/Basket)
[![PHP from Packagist](https://img.shields.io/packagist/php-v/artisanry/basket.svg?style=flat-square)]()
[![Latest Version](https://img.shields.io/github/release/artisanry/Basket.svg?style=flat-square)](https://github.com/artisanry/Basket/releases)
[![License](https://img.shields.io/packagist/l/artisanry/Basket.svg?style=flat-square)](https://packagist.org/packages/artisanry/Basket)

Check https://github.com/BrianFaust/Basket to see how the underlying Basket works.
Check https://github.com/Artisanry/Basket to see how the underlying Basket works.

## Installation

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

``` bash
$ composer require faustbrian/laravel-basket
$ composer require artisanry/basket
```

## Usage
Expand All @@ -22,7 +22,7 @@ $ composer require faustbrian/laravel-basket
This function should be used when you want to built your "Product"-Objects on your own.

``` php
use BrianFaust\LaravelBasket\Basket;
use Artisanry\LaravelBasket\Basket;

get('/', function (Basket $basket) {
// Setup the Basket for UK
Expand Down Expand Up @@ -53,7 +53,7 @@ LaravelBasket. It will create the "Product"-Object and build all objects that
are required like "Money"-Objects for delivery costs.

``` php
use BrianFaust\LaravelBasket\Basket;
use Artisanry\LaravelBasket\Basket;

get('/', function (Basket $basket) {
// Setup the Basket for UK
Expand Down Expand Up @@ -198,7 +198,7 @@ $ phpunit

## Security

If you discover a security vulnerability within this package, please send an e-mail to hello@brianfaust.me. All security vulnerabilities will be promptly addressed.
If you discover a security vulnerability within this package, please send an e-mail to hello@basecode.sh. All security vulnerabilities will be promptly addressed.

## Credits

Expand All @@ -207,4 +207,4 @@ If you discover a security vulnerability within this package, please send an e-m

## License

[MIT](LICENSE) © [Brian Faust](https://brianfaust.me)
[MIT](LICENSE) © [Brian Faust](https://basecode.sh)
18 changes: 9 additions & 9 deletions composer.json
@@ -1,16 +1,16 @@
{
"name": "faustbrian/laravel-basket",
"name": "artisanry/basket",
"description": "Powerful Basket for Laravel 5",
"keywords": ["laravel", "framework", "Laravel-Basket", "Laravel Basket", "Brian Faust", "faustbrian"],
"keywords": ["laravel", "framework", "Laravel-Basket", "Laravel Basket"],
"license": "MIT",
"authors": [{
"name": "Brian Faust",
"email": "hello@brianfaust.me",
"homepage": "https://brianfaust.me"
"email": "hello@basecode.sh",
"homepage": "https://basecode.sh"
}],
"require": {
"php": "^7.1",
"faustbrian/laravel-service-provider": "^1.1",
"artisanry/service-provider": "^1.1",
"faustbrian/basket": "^2.0"
},
"require-dev": {
Expand All @@ -20,13 +20,13 @@
},
"autoload": {
"psr-4": {
"BrianFaust\\Laravel\\Basket\\": "src/"
"Artisanry\\Laravel\\Basket\\": "src/"
},
"files": ["src/helpers.php"]
},
"autoload-dev": {
"psr-4": {
"BrianFaust\\Tests\\Laravel\\Basket\\": "tests"
"Artisanry\\Tests\\Laravel\\Basket\\": "tests"
}
},
"config": {
Expand All @@ -39,10 +39,10 @@
},
"laravel": {
"providers": [
"BrianFaust\\Basket\\BasketServiceProvider"
"Artisanry\\Basket\\BasketServiceProvider"
],
"aliases": {
"Basket": "BrianFaust\\Basket\\Facades\\Basket"
"Basket": "Artisanry\\Basket\\Facades\\Basket"
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions resources/config/basket.php
@@ -1,11 +1,11 @@
<?php

declare(strict_types=1);
declare (strict_types = 1);

/*
* This file is part of Laravel Basket.
*
* (c) Brian Faust <hello@brianfaust.de>
* (c) Brian Faust <hello@basecode.sh>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -22,7 +22,7 @@
|
*/

'session_key' => 'faustbrian_basket',
'session_key' => 'artisanry_basket',

/*
|--------------------------------------------------------------------------
Expand All @@ -44,6 +44,6 @@
|
*/

'jurisdiction' => BrianFaust\Basket\Jurisdictions\Europe\Germany::class,
'jurisdiction' => Artisanry\Basket\Jurisdictions\Europe\Germany::class,

];
44 changes: 22 additions & 22 deletions src/BasketFactory.php
Expand Up @@ -5,32 +5,32 @@
/*
* This file is part of Laravel Basket.
*
* (c) Brian Faust <hello@brianfaust.de>
* (c) Brian Faust <hello@basecode.sh>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace BrianFaust\Laravel\Basket;

use BrianFaust\Basket\Basket;
use BrianFaust\Basket\Collection;
use BrianFaust\Basket\Contracts\Discount;
use BrianFaust\Basket\Contracts\Jurisdiction;
use BrianFaust\Basket\Converter;
use BrianFaust\Basket\MetaData\DeliveryMetaData;
use BrianFaust\Basket\MetaData\DiscountMetaData;
use BrianFaust\Basket\MetaData\ProductsMetaData;
use BrianFaust\Basket\MetaData\SubtotalMetaData;
use BrianFaust\Basket\MetaData\TaxableMetaData;
use BrianFaust\Basket\MetaData\TaxMetaData;
use BrianFaust\Basket\MetaData\TotalMetaData;
use BrianFaust\Basket\MetaData\ValueMetaData;
use BrianFaust\Basket\Order;
use BrianFaust\Basket\Processor;
use BrianFaust\Basket\Product;
use BrianFaust\Basket\Reconcilers\DefaultReconciler;
use BrianFaust\Basket\Transformers\ArrayTransformer;
namespace Artisanry\Laravel\Basket;

use Artisanry\Basket\Basket;
use Artisanry\Basket\Collection;
use Artisanry\Basket\Contracts\Discount;
use Artisanry\Basket\Contracts\Jurisdiction;
use Artisanry\Basket\Converter;
use Artisanry\Basket\MetaData\DeliveryMetaData;
use Artisanry\Basket\MetaData\DiscountMetaData;
use Artisanry\Basket\MetaData\ProductsMetaData;
use Artisanry\Basket\MetaData\SubtotalMetaData;
use Artisanry\Basket\MetaData\TaxableMetaData;
use Artisanry\Basket\MetaData\TaxMetaData;
use Artisanry\Basket\MetaData\TotalMetaData;
use Artisanry\Basket\MetaData\ValueMetaData;
use Artisanry\Basket\Order;
use Artisanry\Basket\Processor;
use Artisanry\Basket\Product;
use Artisanry\Basket\Reconcilers\DefaultReconciler;
use Artisanry\Basket\Transformers\ArrayTransformer;
use Closure;
use Money\Money;

Expand Down Expand Up @@ -250,7 +250,7 @@ public function setRawOrder(?Order $rawOrder)
/**
* Sets the basket instance.
*
* @param \BrianFaust\Laravel\Basket\Basket $basket
* @param \Artisanry\Laravel\Basket\Basket $basket
*
* @return $this
*/
Expand Down
28 changes: 14 additions & 14 deletions src/BasketManager.php
@@ -1,28 +1,28 @@
<?php

declare(strict_types=1);
declare (strict_types = 1);

/*
* This file is part of Laravel Basket.
*
* (c) Brian Faust <hello@brianfaust.de>
* (c) Brian Faust <hello@basecode.sh>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace BrianFaust\Laravel\Basket;
namespace Artisanry\Laravel\Basket;

use BrianFaust\Basket\Contracts\Jurisdiction;
use BrianFaust\Laravel\Basket\Storage\StorageInterface;
use Artisanry\Basket\Contracts\Jurisdiction;
use Artisanry\Laravel\Basket\Storage\StorageInterface;
use Illuminate\Events\Dispatcher;

class BasketManager
{
/**
* The storage driver used by Basket.
*
* @var \BrianFaust\Laravel\Basket\Storage\StorageInterface
* @var \Artisanry\Laravel\Basket\Storage\StorageInterface
*/
protected $storage;

Expand All @@ -36,21 +36,21 @@ class BasketManager
/**
* The basket factory instance.
*
* @var \BrianFaust\Laravel\Basket\BasketFactory
* @var \Artisanry\Laravel\Basket\BasketFactory
*/
protected $basket;

/**
* The basket jurisdiction.
*
* @var \BrianFaust\Basket\Contracts\Jurisdiction
* @var \Artisanry\Basket\Contracts\Jurisdiction
*/
protected $jurisdiction;

/**
* Constructor.
*
* @param \BrianFaust\Laravel\Basket\StorageInterface $storage
* @param \Artisanry\Laravel\Basket\StorageInterface $storage
* @param \Illuminate\Events\Dispatcher $dispatcher
*/
public function __construct(StorageInterface $storage, Dispatcher $dispatcher, Jurisdiction $jurisdiction)
Expand Down Expand Up @@ -93,7 +93,7 @@ public function getStorage()
/**
* Sets the storage driver.
*
* @param \BrianFaust\Laravel\Basket\Storage\StorageInterface $storage
* @param \Artisanry\Laravel\Basket\Storage\StorageInterface $storage
*/
public function setStorage(StorageInterface $storage)
{
Expand Down Expand Up @@ -123,7 +123,7 @@ public function setDispatcher(Dispatcher $dispatcher)
/**
* Returns the Basket jurisdiction.
*
* @return \BrianFaust\Basket\Contracts\Jurisdiction
* @return \Artisanry\Basket\Contracts\Jurisdiction
*/
public function getJurisdiction()
{
Expand All @@ -133,7 +133,7 @@ public function getJurisdiction()
/**
* Sets the Basket jurisdiction.
*
* @param \BrianFaust\Basket\Contracts\Jurisdiction $jurisdiction
* @param \Artisanry\Basket\Contracts\Jurisdiction $jurisdiction
*/
public function setJurisdiction(Jurisdiction $jurisdiction)
{
Expand All @@ -148,7 +148,7 @@ public function setJurisdiction(Jurisdiction $jurisdiction)
*/
public function fire($event, $data)
{
$this->dispatcher->fire("faustbrian.basket.{$event}", $data);
$this->dispatcher->fire("artisanry.basket.{$event}", $data);
}

/**
Expand All @@ -167,7 +167,7 @@ public function __call($method, $parameters)
/**
* Returns the basket contents.
*
* @return \BrianFaust\Laravel\Basket\BasketFactory
* @return \Artisanry\Laravel\Basket\BasketFactory
*/
private function getFactory()
{
Expand Down
6 changes: 3 additions & 3 deletions src/BasketServiceProvider.php
Expand Up @@ -5,15 +5,15 @@
/*
* This file is part of Laravel Basket.
*
* (c) Brian Faust <hello@brianfaust.de>
* (c) Brian Faust <hello@basecode.sh>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace BrianFaust\Laravel\Basket;
namespace Artisanry\Laravel\Basket;

use BrianFaust\ServiceProvider\AbstractServiceProvider as ServiceProvider;
use Artisanry\ServiceProvider\AbstractServiceProvider as ServiceProvider;

class BasketServiceProvider extends ServiceProvider
{
Expand Down
4 changes: 2 additions & 2 deletions src/Facades/Basket.php
Expand Up @@ -5,13 +5,13 @@
/*
* This file is part of Laravel Basket.
*
* (c) Brian Faust <hello@brianfaust.de>
* (c) Brian Faust <hello@basecode.sh>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace BrianFaust\Laravel\Basket\Facades;
namespace Artisanry\Laravel\Basket\Facades;

use Illuminate\Support\Facades\Facade;

Expand Down
8 changes: 4 additions & 4 deletions src/Storage/IlluminateSession.php
@@ -1,17 +1,17 @@
<?php

declare(strict_types=1);
declare (strict_types = 1);

/*
* This file is part of Laravel Basket.
*
* (c) Brian Faust <hello@brianfaust.de>
* (c) Brian Faust <hello@basecode.sh>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace BrianFaust\Laravel\Basket\Storage;
namespace Artisanry\Laravel\Basket\Storage;

use Illuminate\Session\Store as SessionStore;

Expand All @@ -22,7 +22,7 @@ class IlluminateSession implements StorageInterface
*
* @var string
*/
protected $key = 'faustbrian_basket';
protected $key = 'artisanry_basket';

/**
* The instance that is being used.
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/StorageInterface.php
Expand Up @@ -5,13 +5,13 @@
/*
* This file is part of Laravel Basket.
*
* (c) Brian Faust <hello@brianfaust.de>
* (c) Brian Faust <hello@basecode.sh>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace BrianFaust\Laravel\Basket\Storage;
namespace Artisanry\Laravel\Basket\Storage;

interface StorageInterface
{
Expand Down

0 comments on commit 3b89550

Please sign in to comment.