2017 © Pedro Peláez
 

library clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

image

climphp/clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  • Wednesday, April 26, 2017
  • by basuke
  • Repository
  • 1 Watchers
  • 1 Stars
  • 99 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 11 Versions
  • 10 % Grown

The README.md

Clim Framework

PHP Micro framework for command line application inspired by Slim Framework, (*1)

Build Status, (*2)

Features

  • Simple yet powerful configuration
  • DI Container support
  • Sub command dispatch
  • Middleware support

Install

$ composer require climphp/clim

Usage

After composer install, create an hello.php file with the following contents:, (*3)

<?php

require 'vendor/autoload.php';

$app = new Clim\App();

$app->opt('-u|--upper');
$app->arg('name')->default('unknown');

$app->task(function ($opts, $args) {
    $name = $args['name'];

    if ($opts['u']) $name = strtoupper($name);

    echo "Welcome, {$name}\n";
});

$app->run();

Then from the shell:, (*4)

$ php hello.php Nocchi
Welcome, Nocchi
$ php hello.php -u Kashiyuka
Welcome, KASHIYUKA

For more information on how to configure your clie application, see the Documentation., (*5)

Tests

To execute the test suite, you'll need codeception., (*6)

$ vendor/bin/codecept run unit

Credits

Special thanks to Slim Framework for the archtecture and the api design., (*7)

License

The Clim Framework is licensed under the MIT license. See License File for more information., (*8)

The Versions

26/04 2017

dev-master

9999999-dev https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli

26/04 2017

v1.5.0

1.5.0.0 https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli

24/04 2017

v1.4.3

1.4.3.0 https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli

23/04 2017

v1.4.2

1.4.2.0 https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli

22/04 2017

v1.4.1

1.4.1.0 https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli

21/04 2017

v1.4.0

1.4.0.0 https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli

20/04 2017

v1.3.0

1.3.0.0 https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli

19/04 2017

v1.2.0

1.2.0.0 https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli

19/04 2017

v1.1.0

1.1.0.0 https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli

18/04 2017

v1.0.1

1.0.1.0 https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli

17/04 2017

v1.0.0

1.0.0.0 https://github.com/climphp/Clim

Clim is a PHP micro framework that helps you quickly write simple yet powerful command line applications

  Sources   Download

MIT

The Requires

 

The Development Requires

micro framework cli