Skip to content

Commit a419658

Browse files
committed
Initial concept
0 parents  commit a419658

File tree

8 files changed

+765
-0
lines changed

8 files changed

+765
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
box.phar
2+
vendor
3+
.idea
4+
vex.phar

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Vamsi Krishna B
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
vex is a small PHP app that sends some load to a web application
2+
3+
## Installation
4+
5+
Download the latest release from GitHub ['Releases']('/releases').
6+
7+
## Usage
8+
9+
Usage:
10+
`` ./vex.phar <url> [<n>] [<c>] [<m>] ``
11+
12+
Arguments:
13+
```
14+
url The URL to which the requests should be sent
15+
n Number of requests to be made [default: 1]
16+
c Concurrency [default: 1]
17+
m HTTP Method [default: "GET"]
18+
```
19+
Example :
20+
21+
./vex.phar http://127.0.0.1:8000 1000 10

bin/vex

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#!/usr/bin/env php
2+
<?php
3+
require __DIR__ . '/../vendor/autoload.php';
4+
5+
use Symfony\Component\Console\Application;
6+
use Vamsi\Vex\Command\VexCommand;
7+
8+
$application = new Application('Vex', '0.1-dev');
9+
$command = new VexCommand();
10+
$application->add($command);
11+
$application->run();
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+
68+
69+
70+
71+
72+

box.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"chmod": "0755",
3+
"directories": [
4+
"src"
5+
],
6+
"files": [
7+
"LICENSE"
8+
],
9+
"finder": [
10+
{
11+
"name": "*.php",
12+
"exclude": ["Tests"],
13+
"in": "vendor"
14+
}
15+
],
16+
"main": "bin/vex",
17+
"output": "vex.phar",
18+
"stub": true
19+
}

composer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "vamsiikrishna/vex",
3+
"description": "small app that sends some load to a web application.",
4+
"type": "project",
5+
"require": {
6+
"guzzlehttp/guzzle": "~6.0",
7+
"symfony/console": "^3.3",
8+
"symfony/stopwatch": "^3.3"
9+
},
10+
"autoload": {
11+
"psr-4": {
12+
"Vamsi\\": "src/Vamsi"
13+
}
14+
},
15+
"license": "MIT",
16+
"authors": [
17+
{
18+
"name": "Vamsi Krishna B",
19+
"email": "[email protected]"
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)