Fix namespace in composer file, add readme + test file

Corelibs -> CoreLibs

test/ folder for test files (future phpunit test)
This commit is contained in:
Clemens Schwaighofer
2023-02-16 13:02:27 +09:00
parent cfcd601b3a
commit 552854b90e
5 changed files with 30 additions and 5 deletions

23
ReadMe.md Normal file
View File

@@ -0,0 +1,23 @@
# Composer package from CoreLibs
This is just the lib/CoreLibs folder in a composer package.
For local install only
## Setup
In the composer.json file add the following
```json
{
"repositories": [
{
"type": "vcs",
"url": "https://git.egplusww.jp/Composer/CoreLibs-Composer-All"
}
],
"require": {
"egrajp/corelibs-composer-all": "@dev"
}
}
```

View File

@@ -5,7 +5,7 @@
"license": "MIT",
"autoload": {
"psr-4": {
"Corelibs\\": "src/"
"CoreLibs\\": "src/"
}
},
"authors": [

View File

@@ -2,4 +2,6 @@
require "../vendor/autoload.php";
print "Bytes: " . CoreLibs\Convert\Byte::humanReadableByteFormat(123414) . "<br>";
// __END__

View File

@@ -6,5 +6,5 @@ $vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Egrajp\\CorelibsComposerAll\\' => array($baseDir . '/src'),
'CoreLibs\\' => array($baseDir . '/src'),
);

View File

@@ -7,14 +7,14 @@ namespace Composer\Autoload;
class ComposerStaticInit610a8785884d9612d153c0422940ab8a
{
public static $prefixLengthsPsr4 = array (
'E' =>
'C' =>
array (
'Egrajp\\CorelibsComposerAll\\' => 27,
'CoreLibs\\' => 9,
),
);
public static $prefixDirsPsr4 = array (
'Egrajp\\CorelibsComposerAll\\' =>
'CoreLibs\\' =>
array (
0 => __DIR__ . '/../..' . '/src',
),