Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
294908b
Add docker-compose-admin template
mrrobot47 Aug 8, 2018
b11611a
Add template for index.php
mrrobot47 Aug 8, 2018
40988d0
Add template for phpinfo.php
mrrobot47 Aug 8, 2018
54fbd45
Add template for pma configuration
mrrobot47 Aug 8, 2018
12e3d00
Add template for pra configuration
mrrobot47 Aug 8, 2018
6f922d7
Add initial installation, up and down of admin tools
mrrobot47 Aug 8, 2018
e3e5c46
Add initial admin-tools
mrrobot47 Aug 8, 2018
6929338
Merge branch 'master' into develop
mrrobot47 Aug 8, 2018
0a842d8
Add zend opcache gui
mrrobot47 Aug 9, 2018
8666ee2
Remove listing of index.php from admin-tools
mrrobot47 Aug 9, 2018
fb6490b
Add composer installation
mrrobot47 Aug 10, 2018
8f3fbad
Update according to db refactoring
mrrobot47 Aug 21, 2018
6e39233
Add inclusion of site mode
mrrobot47 Aug 21, 2018
fb2ba53
Update config file move function call
mrrobot47 Aug 21, 2018
aa5c9cf
Fix file moving
mrrobot47 Aug 21, 2018
2a30991
Update index according to db refactoring
mrrobot47 Aug 21, 2018
7cc3538
Remove wp-cli specific ignore file
mrrobot47 Aug 21, 2018
d7bd488
Update editorconfig
mrrobot47 Aug 21, 2018
35cde10
Remove extra lines
mrrobot47 Aug 21, 2018
98b8262
Update json handling validations
mrrobot47 Aug 21, 2018
ff6964f
Add check before user_call_func
mrrobot47 Aug 21, 2018
091d2ec
Add doc comment
mrrobot47 Aug 21, 2018
e960a6e
Update doc-comments in index mustache
mrrobot47 Aug 21, 2018
f7f9173
Remove extra variable
mrrobot47 Aug 21, 2018
37b0dc9
Update important path in index via mustaching
mrrobot47 Aug 21, 2018
50dd657
Update flow and warning to error
mrrobot47 Aug 21, 2018
00fc253
Update log msg to success
mrrobot47 Aug 21, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.DS_Store
.git
.gitignore
.gitlab-ci.yml
.editorconfig
.travis.yml
behat.yml
circle.yml
bin/
features/
utils/
*.zip
*.tar.gz
*.swp
*.txt
*.log
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[{.jshintrc,*.json,*.yml,*.feature}]
indent_style = space
indent_size = 2

[{*.txt}]
end_of_line = crlf

[composer.json]
indent_style = space
indent_size = 4
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules/
vendor/
*.zip
*.tar.gz
*.swp
*.txt
*.log
composer.lock
.idea
20 changes: 20 additions & 0 deletions admin-tools-command.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

if ( ! class_exists( 'EE' ) ) {
return;
}

if ( ! defined( 'ADMIN_TOOLS_FILE' ) ) {
define( 'ADMIN_TOOLS_FILE', __DIR__ . '/tools.json' );
}

if ( ! defined( 'ADMIN_TEMPLATE_ROOT' ) ) {
define( 'ADMIN_TEMPLATE_ROOT', __DIR__ . '/templates' );
}

$autoload = dirname( __FILE__ ) . '/vendor/autoload.php';
if ( file_exists( $autoload ) ) {
require_once $autoload;
}

EE::add_command( 'admin-tools', 'Admin_Tools_Command' );
25 changes: 25 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "easyengine/admin-tools-command",
"description": "Commanad to enable disable admin tools for php based sites.",
"type": "ee-cli-package",
"homepage": "https://github.com/easyengine/amdin-tools",
"license": "MIT",
"authors": [],
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"": "src/"
},
"files": [ "admin-tools-command.php" ]
},
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
},
"bundled": true,
"commands": [
"admin-tools"
]
}
}
2 changes: 2 additions & 0 deletions ee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require:
- admin-tools-command.php
43 changes: 43 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0"?>
<ruleset name="EE">
<description>WordPress Coding Standards for EE</description>

<!-- Show sniff codes in all reports, and progress while running -->
<arg value="sp"/>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<!-- Run different reports -->
<arg name="report" value="full"/>
<arg name="report" value="summary"/>
<arg name="report" value="source"/>

<file>.</file>
<exclude-pattern>*/ci/*</exclude-pattern>
<exclude-pattern>*/features/*</exclude-pattern>
<exclude-pattern>*/packages/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/utils/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>

<rule ref="PHPCompatibility">
<!-- Polyfill package is used so array_column() is available for PHP 5.4- -->
<exclude name="PHPCompatibility.PHP.NewFunctions.array_columnFound"/>
<!-- Both magic quotes directives set in wp-settings-cli.php to provide consistent starting point. -->
<exclude name="PHPCompatibility.PHP.DeprecatedIniDirectives.magic_quotes_runtimeDeprecatedRemoved"/>
<exclude name="PHPCompatibility.PHP.DeprecatedIniDirectives.magic_quotes_sybaseDeprecatedRemoved"/>
</rule>
<config name="testVersion" value="7.0-"/>

<rule ref="WordPress-Core">
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" />
<exclude name="WordPress.NamingConventions.ValidVariableName.MemberNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" />
</rule>
<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false"/>
</properties>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
</rule>
</ruleset>
Loading