Download the PHP package cleaniquecoders/kong-admin-api without Composer

On this page you can find all versions of the php package cleaniquecoders/kong-admin-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kong-admin-api

Latest Version on Packagist Tests Total Downloads

Kong Admin API

A PHP package for seamless interaction with Kong Gateway's Admin API

Installation

You can install the package via Composer:

Setup Kong Gateway API Loopback

For initial setup, you need Kong Gateway configured with loopback it's Admin API and enable header based authentication. Following are an example of the setup. These commands will simply create the new consumer, add admin API service, create API key for consumer.

Usage

Here are examples of using this package:

Initialize Configuration

Create Connector and Client

Example: Store a New Service

Stores a new service with the specified name and URL.

Example: Update an Existing Service

Updates an existing service (specified by identifier) with new data.

Example: Delete a Service

Deletes a service specified by the identifier.

Example: Get a Specific Service

Retrieves details for a single service by passing the identifier.

Example: Get a List of All Services

Retrieves a list of all services without specifying an identifier.

Example: Add a Rate-Limiting Plugin to a Consumer

Associates a rate-limiting plugin with a specific consumer, configuring the rate limit to 5 requests per minute.

Example: Update a CORS Plugin for a Route

Updates an existing CORS plugin associated with a specific route, allowing all origins.

Example: Get a JWT Plugin for a Service

Retrieves details of a JWT plugin associated with a specific service.

Example: Delete an HMAC Authentication Plugin from a Service

Deletes an HMAC authentication plugin associated with a specific service.

References

For more details on available endpoints, parameters, and usage of the Kong Admin API, please refer to the Kong Admin API documentation.

To explore the plugins available for free and open-source use, visit the Kong Hub Plugins page.

The Endpoint enum in this package reflects the endpoints defined in the OpenAPI specification provided by Kong.

Certainly! Here’s the list of free and open-source plugins available in Kong's free tier, as per the Kong Hub documentation:

List of Free Tier Plugins for Kong

Plugin Identifier Endpoint Label Description
acl acls ACL Control access to services and routes by whitelisting or blacklisting consumers.
bot-detection bot-detection Bot Detection Identify and block bot traffic based on various techniques and algorithms.
cors cors CORS Enable Cross-Origin Resource Sharing (CORS) on a service or route.
ip-restriction ip-restriction IP Restriction Allow or deny access based on the client's IP address.
jwt jwt JWT Validate JSON Web Tokens (JWT) for authentication purposes.
key-auth key-auth Key Authentication Authenticate users using an API key that consumers include in their requests.
ldap-auth ldap-auth LDAP Authentication Authenticate users against an LDAP server.
oauth2 oauth2 OAuth 2.0 Add OAuth 2.0 authentication to protect your APIs.
rate-limiting rate-limiting Rate Limiting Limit the number of requests a user can make to an API within a defined period.
request-size-limiting request-size-limiting Request Size Limiting Limit the size of client request bodies.
request-termination request-termination Request Termination Terminate incoming requests based on certain criteria, such as status code or message.
response-ratelimiting response-ratelimiting Response Rate Limiting Control response rates based on defined criteria.
session session Session Management Manage sessions and store session data across multiple requests.
basic-auth basic-auth Basic Authentication Provide basic authentication (username and password) for consumers.
hmac-auth hmac-auth HMAC Authentication Authenticate users using HMAC signature-based authentication.
datadog datadog Datadog Send request metrics to Datadog for monitoring and alerting.
prometheus prometheus Prometheus Expose metrics in a format that Prometheus can scrape for monitoring.
statsd statsd StatsD Send request metrics to a StatsD server for monitoring.
tcp-log tcp-log TCP Log Log request data to a TCP server for monitoring or analysis.
udp-log udp-log UDP Log Log request data to a UDP server for monitoring or analysis.
file-log file-log File Log Log request data to a file for later review.
http-log http-log HTTP Log Log request data to an HTTP endpoint for monitoring or analysis.
syslog syslog Syslog Log request data to the Syslog service for centralized logging.

This list includes each plugin’s identifier, endpoint, label, and a brief description of its functionality. These plugins can be used to add various features such as rate limiting, authentication, logging, and monitoring to Kong APIs in the free and open-source tier.

Testing

To run tests:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see development documentation details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of kong-admin-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
saloonphp/saloon Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cleaniquecoders/kong-admin-api contains the following files

Loading the files please wait ....