Skip to content

Commit

Permalink
first release
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Vidal committed Aug 23, 2016
0 parents commit 4c62ee1
Show file tree
Hide file tree
Showing 24 changed files with 3,212 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/.idea
/vendor
/storage
.backap.yaml
php_errors.log
box.phar
backap.phar
backap.phar.gz
18 changes: 18 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Copyright (c) 2016 Tecactus

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.
10 changes: 10 additions & 0 deletions bin/backap
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env php
<?php
if (PHP_SAPI !== 'cli') {
echo 'Warning: Backap should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
die();
}
define("WORKING_DIR", getcwd());
require __DIR__.'/../src/bootstrap.php';
use Backap\Application;
$application = new Application();
23 changes: 23 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"chmod": "0755",
"compression": "GZ",
"directories": [
"src"
],
"files": [
"/src/.backap.yaml.example",
"/vendor/herrera-io/phar-update/res/schema.json",
"/vendor/dropbox/dropbox-sdk/lib/Dropbox/certs/trusted-certs.crt"
],
"finder": [
{
"name": "*.php",
"exclude": ["Tests", "tests", "readme.md"],
"in": "vendor"
}
],
"git-version": "package_version",
"main": "bin/backap",
"output": "backap.phar",
"stub": true
}
35 changes: 35 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "tecactus/backap",
"description": "MySQL database backup manager",
"keywords": ["tecactus", "backap", "backup", "mysql", "phar", "database", "manager", "dump", "restore"],
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Paul Vidal",
"email": "paul@tecactus.com"
}
],
"require": {
"php": "^5.3.2 || ^7.0",
"symfony/console": "~2.0 || ~3.0",
"league/flysystem": "~1.0",
"vlucas/phpdotenv": "~2.2",
"nesbot/carbon": "~1.0",
"illuminate/support": "^5.1 || ^5.2",
"symfony/yaml": "~3.0",
"league/flysystem-dropbox": "~1.0",
"herrera-io/phar-update": "^2.0"
},
"autoload": {
"psr-4": {
"Backap\\": "src/"
},
"files": [
"src/Support/helpers.php"
]
},
"bin": [
"bin/backap"
]
}
Loading

0 comments on commit 4c62ee1

Please sign in to comment.