Skip to content

Commit

Permalink
Compliance performance and bug solved.
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanisgk committed Feb 26, 2021
1 parent 70959ac commit b40f83d
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 125 deletions.
32 changes: 28 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# [BOH] Basic Output Handler for PHP

[![GitHub license](https://img.shields.io/github/license/arcanisgk/BOH-Basic-Ouput-Handler)](https://github.com/arcanisgk/BOH-Basic-Ouput-Handler/blob/main/LICENSE)
[![State](https://img.shields.io/static/v1?label=release&message=1.0.0&color=blue 'Latest known version')](https://github.com/arcanisgk/BOH-Basic-Ouput-Handler/tree/v0.1.3-alpha) <!-- __SEMANTIC_VERSION_LINE__ -->
[![State](https://img.shields.io/static/v1?label=release&message=v1.0.4&color=blue 'Latest known version')](https://github.com/arcanisgk/BOH-Basic-Ouput-Handler/tree/v1.0.4) <!-- __SEMANTIC_VERSION_LINE__ -->
[![GitHub issues](https://img.shields.io/github/issues/arcanisgk/BOH-Basic-Ouput-Handler)](https://github.com/arcanisgk/BOH-Basic-Ouput-Handler/issues)
[![Minimum PHP version](https://img.shields.io/static/v1?label=PHP&message=7.4.0+or+higher&color=blue "Minimum PHP version")](https://www.php.net/releases/7_4_0.php)

Expand Down Expand Up @@ -60,8 +60,8 @@ $output = new Output\Output_Handler();
```php

//you can define the theme to be used in the output in web or cli:
$output = new Output\Output_Handler('monokai'); //in the class Instance or
$output->Theme('monokai'); //call the method Theme
$output = new Output\Output_Handler('monokai'); //in the class Instance or
$output->Theme('monokai'); //call the method Theme
```


Expand All @@ -79,5 +79,29 @@ $output->output($example_array,'cli',true); // an cli can retrive strings.

![Image of Example Output ](https://i.imgur.com/5WQ1Dd4.jpg)

## Unit Test for output:

Unit test Pending for version v1.1.0

### Contributors
- (c) 2021 Walter Francisco Núñez Cruz [email protected] [![Donate](https://img.shields.io/static/v1?label=Donate&message=PayPal.me/wnunez86&color=brightgreen)](https://www.paypal.me/wnunez86/4.99USD)
- (c) 2020 - 2021 Walter Francisco Núñez Cruz [email protected] [![Donate](https://img.shields.io/static/v1?label=Donate&message=PayPal.me/wnunez86&color=brightgreen)](https://www.paypal.me/wnunez86/4.99USD)

### I want to give special credit to the Help, Collaboration and Support of the programmers fron php.net, StackExchange Community and Reddit(/r/PHPhelp/):

- Mr_What4 (Reddit)
- CyberJack77 (Reddit)
- requinix (PHP.net)
- patricio-moracho (SOes)
- quevedo (SOes)
- mauricio-contreras (SOes)
- gbianchi (SOes)
- Triby (SOes)
- Marcos (SOes)
- anythingg (SOes)
- mdfst13 (CodeReview SE)
- Sᴀᴍ Onᴇᴌᴀ (CodeReview SE)
- mast (CodeReview SE)
- der-kommissar (CodeReview SE)
- peilonrayz (CodeReview SE)

### Those who have supported me in this project in an invaluable way, Greetings Guys.
33 changes: 21 additions & 12 deletions example/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,31 @@
*/
class FooBar
{
function foo_function()
function foofunction()
{
return "Hello World!";
}
}

/**
* $var_class is a variable storage of instance class FooBar.
* $varclass is a variable storage of instance class FooBar.
*/
$var_class = new FooBar;
$varclass = new FooBar;

/**
* $example_single is a short variable to use as an example.
* $examplesingle is a short variable to use as an example.
*/
$example_single = 'Hello World';
$examplesingle = 'Hello World';

/**
* $example_array is a large array variable to use as an example.
* $exampleshortarray is a short variable to use as an example.
*/
$example_array = [
$exampleshortarray = ['a' => 1, 'b' => 2];

/**
* $examplearray is a large array variable to use as an example.
*/
$examplearray = [
'null' => null,
'null_text' => 'null',
'integer' => 10,
Expand Down Expand Up @@ -72,7 +77,7 @@ function foo_function()
],
'objects_list' => [
'object_empty' => (object) [],
'class' => $var_class,
'class' => $varclass,
'resource' => curl_init(),
],
];
Expand All @@ -81,12 +86,16 @@ function foo_function()
$output = new Output\OutputHandler();

//Theme Selection
$output->theme('monokai');
$output->getTheme('monokai');

//example 1:
$output->output($example_array);
$output->output($examplearray);

$output->getTheme('natural-flow');

$output->theme('natural-flow');
//example 2:
$output->output($example_array);
$output->output($examplearray);

//example 3:
$output->output($exampleshortarray);

Loading

0 comments on commit b40f83d

Please sign in to comment.