-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Odole Kayode
committed
Oct 5, 2019
0 parents
commit f582e0f
Showing
14 changed files
with
660 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This package was designed to assist developers. | ||
|
||
# A good thought is generated each time the static method generateThought() is called. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "kaythinks/goodthoughts", | ||
"description": "This package generates a good thought to help you code better.", | ||
"type": "library", | ||
"authors": [ | ||
{ | ||
"name": "Odole Olukayode", | ||
"email": "kaythinks@gmail.com" | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"require": { | ||
"php": ">=5.4.0" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"Application": "src/" | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Application; | ||
|
||
class Goodthoughts { | ||
|
||
/** | ||
* This static method generates a "Good Thought" from an array of "Good Thought" | ||
* | ||
* @return String | ||
*/ | ||
public static function generateThought() | ||
{ | ||
$thoughtArray = [ | ||
"You are a great programmer", | ||
"Relax, try again later mate !", | ||
"Don't stop till you finish !", | ||
"Tomorrow is another day !", | ||
"Your codes will compile now ,Trust me !,", | ||
"You can do this !", | ||
"Yeah, You did it ! Congrats !" | ||
]; | ||
|
||
$index = mt_rand(0,6); | ||
|
||
return $thoughtArray[$index]; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
require_once __DIR__ .'/../vendor/autoload.php'; // Autoload files using Composer autoload | ||
|
||
use Application\Goodthoughts; | ||
|
||
echo Goodthoughts::generateThought(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
// autoload.php @generated by Composer | ||
|
||
require_once __DIR__ . '/composer/autoload_real.php'; | ||
|
||
return ComposerAutoloaderInitd1a06004e8ecf5dbce5218aa071f1faf::getLoader(); |
Oops, something went wrong.