Giter Site home page Giter Site logo

laravel-kong's People

Contributors

acrosman avatar douglasdc3 avatar entonox avatar martintern avatar raphaelpaez avatar tsushant avatar xpoback avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

laravel-kong's Issues

Lumen 6 / Laravel 6 support

As i was trying to update to Lumen 6.0 i noticed that there is an incompatibility;

illuminate/support '^5.6'
illuminate/contract '^5.6'

Is there a update planned / available?

Mocking classes

For our authentication service i need to write some tests with phpunit. I'm using Lumen framework and having problems to mock classes.

What i'm trying;

$kongHttpClient = Mockery::mock(\DouglasDC3\Kong\Http\HttpClient::class);

$kongHttpClient->shouldReceive('get')->once()->andReturn(json_encode([]));

$this->app->instance(\DouglasDC3\Kong\Http\HttpClient::class, $kongHttpClient);

This way i'm trying to mock a Kong reply, so i can test my user creation / JWT generation to the point that Kong endpoints are called.

But is seems this mock isnt'getting called at all. Any other ideas on how to try to mock?

Lumen 8 / Laravel 8 support

I created a pull request to make the package compatible with Lumen 8 / Laravel 8. I Also tested the package with the latest Kong 2.x version to verify functionality. All seems fine so i added this support in the readme file.

@Douglasdc3 Can you please merge this and update packagist?

JWT plugin 1.0.x compatibility

I just tested with:

  • Kong v1.2.x
  • JWT plugin v1.0.x

and noticed that creating a consumer JWT doesn't work. I'm planning to make a pull request for it. But it brakes compatibility with JWT 0.1.x versions. So i think its necessary to create a new tag for it and mention in the readme that this version is only compatible with JWT 1.0.x

Code refactor

Code refactors to clean up the code more then welcome.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.