Code Monkey home page Code Monkey logo

laravel-php-k8s's Introduction

Laravel PHP K8s

CI codecov StyleCI Latest Stable Version Total Downloads Monthly Downloads License

Just a simple port of renoki-co/php-k8s for easier access in Laravel.

๐Ÿค Supporting

Renoki Co. on GitHub aims on bringing a lot of open source projects and helpful projects to the world. Developing and maintaining projects everyday is a harsh work and tho, we love it.

If you are using your application in your day-to-day job, on presentation demos, hobby projects or even school projects, spread some kind words about our work or sponsor our work. Kind words will touch our chakras and vibe, while the sponsorships will keep the open source projects alive.

ko-fi

๐Ÿš€ Installation

You can install the package via composer:

composer require renoki-co/laravel-php-k8s

Publish the config:

$ php artisan vendor:publish --provider="RenokiCo\LaravelK8s\LaravelK8sServiceProvider" --tag="config"

๐Ÿ™Œ Usage

The cluster configuration can be found in the config/k8s.php file. You can get started directly with the /.kube/config file you already have.

use RenokiCo\LaravelK8s\LaravelK8sFacade;

foreach (LaravelK8sFacade::getAllConfigMaps() as $cm) {
    // $cm->getName();
}

For further documentation, check renoki-co/php-k8s.

Multiple connections

The package supports multiple connections configurations. If you wish to select a specific one (not the default one), call connection before getting the cluster.

use RenokiCo\LaravelK8s\LaravelK8sFacade;

$cluster = LaravelK8sFacade::connection('http')->getCluster();

Getting the cluster instance

You can also call getCluster() to get the instance of \RenokiCo\PhpK8s\KubernetesCluster:

$cluster = LaravelK8sFacade::getCluster();

๐Ÿ› Testing

vendor/bin/phpunit

๐Ÿค Contributing

Please see CONTRIBUTING for details.

๐Ÿ”’ Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

๐ŸŽ‰ Credits

laravel-php-k8s's People

Contributors

rennokki avatar

Watchers

 avatar  avatar

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.