renommage
This commit is contained in:
parent
5f8e0f97bf
commit
d42e2a5dd4
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "model-lib-php",
|
"name": "multi-downloader-client",
|
||||||
"image": "rg.fr-par.scw.cloud/kubernetes/devcontainer:php-8.3",
|
"image": "rg.fr-par.scw.cloud/kubernetes/devcontainer:php-8.3",
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
# model-lib-php
|
# multi-downloader-client
|
||||||
|
|
||||||
## Utilisation
|
## Utilisation
|
||||||
- Remplacer tous les "model-lib-php" et "ModelLibPhp" par le nom du module
|
|
||||||
- Modifier la description dans le fichier composer.json
|
|
||||||
- Supprimer ce paragraphe
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
### Composer
|
### Composer
|
||||||
@ -19,5 +16,5 @@ Ajouter les modules communs dans composer.json
|
|||||||
```
|
```
|
||||||
Lancer la commande
|
Lancer la commande
|
||||||
```bash
|
```bash
|
||||||
composer require nwb/model-lib-php
|
composer require nwb/multi-downloader-client
|
||||||
```
|
```
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "nwb/model-lib-php",
|
"name": "nwb/multi-downloader-client",
|
||||||
"description": "Modèle pour créer des modules communs php",
|
"description": "Modèle pour créer des modules communs php",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Nwb\\ModelLibPhp\\": "src/"
|
"Nwb\\MultiDownloaderClient\\": "src/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"authors": [
|
"authors": [
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Nwb\ModelLibPhp;
|
|
||||||
|
|
||||||
class ModelLibPhp
|
|
||||||
{
|
|
||||||
public function hello(): string
|
|
||||||
{
|
|
||||||
return 'Hello World, Composer!';
|
|
||||||
}
|
|
||||||
}
|
|
7
src/MultiDownloaderClient.php
Normal file
7
src/MultiDownloaderClient.php
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Nwb\MultiDownloaderClient;
|
||||||
|
|
||||||
|
class MultiDownloaderClient
|
||||||
|
{
|
||||||
|
}
|
@ -2,14 +2,13 @@
|
|||||||
|
|
||||||
include __DIR__ . '/../vendor/autoload.php';
|
include __DIR__ . '/../vendor/autoload.php';
|
||||||
|
|
||||||
use Nwb\ModelLibPhp\ModelLibPhp;
|
use Nwb\MultiDownloaderClient\MultiDownloaderClient;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class ModelLibPhpTest extends TestCase
|
class MultiDownloaderClienTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testHello()
|
public function testHello()
|
||||||
{
|
{
|
||||||
$modelLibPhp = new ModelLibPhp();
|
$client = new MultiDownloaderClient();
|
||||||
$this->assertEquals('Hello World, Composer!', $modelLibPhp->hello());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user