renommage

This commit is contained in:
Mathieu 2024-01-11 10:16:15 +00:00
parent 5f8e0f97bf
commit d42e2a5dd4
6 changed files with 15 additions and 23 deletions

View File

@ -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": {

View File

@ -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
``` ```

View File

@ -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": [

View File

@ -1,11 +0,0 @@
<?php
namespace Nwb\ModelLibPhp;
class ModelLibPhp
{
public function hello(): string
{
return 'Hello World, Composer!';
}
}

View File

@ -0,0 +1,7 @@
<?php
namespace Nwb\MultiDownloaderClient;
class MultiDownloaderClient
{
}

View File

@ -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());
} }
} }