Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructured FluxCP to be PSR-4 compliance #232

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# rAthena environment configuration file
APP_ENV="production"
APP_ADDRESS="localhost"
APP_BASE_URI="/"

INSTALLER_PASSWORD="CHANGEME"
DEFAULT_LANGUAGE="en-us"
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@
# Caches
/data/tmp/*.php
/data/tmp/*.cache

# Composer's vendor directory
/vendor/

# Intellij IDEA/phpStorm
/.idea/

# .env
.env
3 changes: 3 additions & 0 deletions addons/helloworld/modules/helloworld/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

use rAthena\FluxCp\Flux;

if (!defined('FLUX_ROOT')) exit;

$fluxVersion = Flux::VERSION;
Expand Down
4 changes: 3 additions & 1 deletion addons/helloworld/themes/default/helloworld/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php if (!defined('FLUX_ROOT')) exit; ?>
<?php use rAthena\FluxCp\Flux;

if (!defined('FLUX_ROOT')) exit; ?>
<h2><?php echo Flux::message('HelloWorld') ?></h2>
<p><?php echo Flux::message('HelloInfoText') ?></p>
<p><?php printf(Flux::message('HelloVersionText'), $fluxVersion) ?></p>
25 changes: 25 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "rathena/fluxcp",
"description": "rAthena MMORPG server control panel",
"type": "project",
"license": "LGPL-3.0-only",
"minimum-stability": "stable",
"require": {
"php": ">=7.0",
"ext-pdo": "*",
"ext-pdo_mysql": "*",
"phpmailer/phpmailer": "^5.2.27",
"vlucas/phpdotenv": "^3.3"
},
"autoload": {
"psr-4": {
"rAthena\\FluxCp\\": "src/"
},
"files": [
"src/functions_include.php"
]
},
"require-dev": {
"filp/whoops": "^2.3"
}
}
Loading