Skip to content

Commit

Permalink
Initial concept
Browse files Browse the repository at this point in the history
  • Loading branch information
vamsiikrishna committed Aug 12, 2017
0 parents commit a419658
Show file tree
Hide file tree
Showing 8 changed files with 765 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
box.phar
vendor
.idea
vex.phar
21 changes: 21 additions & 0 deletions LICENSE
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.
21 changes: 21 additions & 0 deletions README.md
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
72 changes: 72 additions & 0 deletions bin/vex
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();





























































19 changes: 19 additions & 0 deletions box.json
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
}
22 changes: 22 additions & 0 deletions composer.json
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": "vamsi@fastmail.com"
}
]
}
Loading

0 comments on commit a419658

Please sign in to comment.