Skip to content

Commit

Permalink
enforce project name in namespace and update project name in composer
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoSilva committed Jan 4, 2018
1 parent 4508b25 commit abfeebd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

Jason Web Token API client is a library to facilitate consuming API's that require JWT token as authentication.

[![Latest Stable Version](https://poser.pugx.org/bernardosilva/chefs-em-casa-api-client-php/v/stable)](https://packagist.org/packages/bernardosilva/chefs-em-casa-api-client-php)
[![Total Downloads](https://poser.pugx.org/bernardosilva/chefs-em-casa-api-client-php/downloads)](https://packagist.org/packages/bernardosilva/chefs-em-casa-api-client-php)
[![Build Status](https://travis-ci.org/BernardoSilva/chefs-em-casa-api-client-php.svg?branch=master)](https://travis-ci.org/BernardoSilva/chefs-em-casa-api-client-php)
[![License](https://poser.pugx.org/bernardosilva/chefs-em-casa-api-client-php/license)](https://packagist.org/packages/bernardosilva/chefs-em-casa-api-client-php)
[![Latest Stable Version](https://poser.pugx.org/bernardosilva/jwt-api-client-php/v/stable)](https://packagist.org/packages/bernardosilva/jwt-api-client-php)
[![Total Downloads](https://poser.pugx.org/bernardosilva/jwt-api-client-php/downloads)](https://packagist.org/packages/bernardosilva/jwt-api-client-php)
[![Build Status](https://travis-ci.org/BernardoSilva/jwt-api-client-php.svg?branch=master)](https://travis-ci.org/BernardoSilva/jwt-api-client-php)
[![License](https://poser.pugx.org/bernardosilva/jwt-api-client-php/license)](https://packagist.org/packages/bernardosilva/jwt-api-client-php)

## How to Install

Expand All @@ -16,11 +16,11 @@ $ composer require bernardosilva/jwt-api-client-php
## How to use

```php
use ChefsEmCasa\APIClient;
use BernardoSilva\JWTAPIClient\APIClient;

$username = 'your-username';
$password = 'your-password';
$baseURI = 'api.chefs-em-casa.pt';
$baseURI = 'api.your-domain.pt';

$credentials = new UsernameAndPasswordCredentials($username, $password);

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "bernardosilva/chefs-em-casa-api-client-php",
"name": "bernardosilva/jwt-api-client-php",
"description": "API client prepared to consume API using JWT for PHP",
"type": "library",
"license": "GPL-3.0+",
Expand All @@ -10,10 +10,10 @@
}
],
"autoload": {
"psr-4": { "BernardoSilva\\": "src/" }
"psr-4": { "BernardoSilva\\JWTAPIClient\\": "src/" }
},
"autoload-dev": {
"psr-4": { "BernardoSilva\\Tests\\": "tests/" }
"psr-4": { "BernardoSilva\\JWTAPIClient\\Tests\\": "tests/" }
},
"require": {
"php": ">=7.0",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tests/APIClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace BernardoSilva\JWTAPIClient\Tests;

use BernardoSilva\AccessTokenCredentials;
use BernardoSilva\APIClient;
use BernardoSilva\UsernameAndPasswordCredentials;
use BernardoSilva\JWTAPIClient\AccessTokenCredentials;
use BernardoSilva\JWTAPIClient\APIClient;
use BernardoSilva\JWTAPIClient\UsernameAndPasswordCredentials;
use PHPUnit\Framework\TestCase;

final class APIClientTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/AccessTokenCredentialsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace BernardoSilva\JWTAPIClient\Tests;

use BernardoSilva\AccessTokenCredentials;
use BernardoSilva\JWTAPIClient\AccessTokenCredentials;
use PHPUnit\Framework\TestCase;

final class AccessTokenCredentialsTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/UsernameAndPasswordCredentialsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace BernardoSilva\JWTAPIClient\Tests;

use BernardoSilva\UsernameAndPasswordCredentials;
use BernardoSilva\JWTAPIClient\UsernameAndPasswordCredentials;
use PHPUnit\Framework\TestCase;

final class UsernameAndPasswordCredentialsTest extends TestCase
Expand Down

0 comments on commit abfeebd

Please sign in to comment.