douglasdc3 / laravel-kong Goto Github PK
View Code? Open in Web Editor NEWA fluent api wrapper around Kong's API manger designed for Laravel.
License: MIT License
A fluent api wrapper around Kong's API manger designed for Laravel.
License: MIT License
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?
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?
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?
I just tested with:
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
As title describes url including a dash e.g http://kong-ui/
will be split at the dash and result in
protocol: http
host: kong
path: /-ui/
Expected
protocol: http
host: kong-ui
path: /
Found a bug where an ACL was not created when using the ACL plugin. Traced it down and made a pull request for it. #12
Code refactors to clean up the code more then welcome.
@Douglasdc3, could you update the 1.1.0 release in the packagist?
Found a bug where an Auth Key was not created when using the KeyAuth plugin. Traced it down and made a pull request for it. #14
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.