Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cijagani committed Dec 27, 2021
1 parent 72b4297 commit 0f78634
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/
17 changes: 17 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "corbital/random-password",
"description": "generate random password",
"autoload": {
"psr-4": {
"Corbital\\RandomPassword\\": "src/RandomPassword"
}
},
"authors": [
{
"name": "chirag jagani",
"email": "[email protected]"
}
],
"minimum-stability": "dev",
"require": {}
}
17 changes: 17 additions & 0 deletions src/RandomPassword/RandomPassword.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
*
*/
class RandomPassword
{
protected $comb = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
function __construct(argument)
{

}

public function RandomPassword($length = 4){
return substr(str_shuffle($this->comb), 0, $length);
}
}
?>

0 comments on commit 0f78634

Please sign in to comment.