-
Notifications
You must be signed in to change notification settings - Fork 6
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
0 parents
commit a419658
Showing
8 changed files
with
765 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,4 @@ | ||
box.phar | ||
vendor | ||
.idea | ||
vex.phar |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 Vamsi Krishna B | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,21 @@ | ||
vex is a small PHP app that sends some load to a web application | ||
|
||
## Installation | ||
|
||
Download the latest release from GitHub ['Releases']('/releases'). | ||
|
||
## Usage | ||
|
||
Usage: | ||
`` ./vex.phar <url> [<n>] [<c>] [<m>] `` | ||
|
||
Arguments: | ||
``` | ||
url The URL to which the requests should be sent | ||
n Number of requests to be made [default: 1] | ||
c Concurrency [default: 1] | ||
m HTTP Method [default: "GET"] | ||
``` | ||
Example : | ||
|
||
./vex.phar http://127.0.0.1:8000 1000 10 |
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,72 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
require __DIR__ . '/../vendor/autoload.php'; | ||
|
||
use Symfony\Component\Console\Application; | ||
use Vamsi\Vex\Command\VexCommand; | ||
|
||
$application = new Application('Vex', '0.1-dev'); | ||
$command = new VexCommand(); | ||
$application->add($command); | ||
$application->run(); | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
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,19 @@ | ||
{ | ||
"chmod": "0755", | ||
"directories": [ | ||
"src" | ||
], | ||
"files": [ | ||
"LICENSE" | ||
], | ||
"finder": [ | ||
{ | ||
"name": "*.php", | ||
"exclude": ["Tests"], | ||
"in": "vendor" | ||
} | ||
], | ||
"main": "bin/vex", | ||
"output": "vex.phar", | ||
"stub": true | ||
} |
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,22 @@ | ||
{ | ||
"name": "vamsiikrishna/vex", | ||
"description": "small app that sends some load to a web application.", | ||
"type": "project", | ||
"require": { | ||
"guzzlehttp/guzzle": "~6.0", | ||
"symfony/console": "^3.3", | ||
"symfony/stopwatch": "^3.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Vamsi\\": "src/Vamsi" | ||
} | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Vamsi Krishna B", | ||
"email": "[email protected]" | ||
} | ||
] | ||
} |
Oops, something went wrong.