Skip to content

Commit

Permalink
Merge pull request #11 from elminson/elminson_improvements
Browse files Browse the repository at this point in the history
Elminson improvements
  • Loading branch information
elminson authored Aug 7, 2023
2 parents 28b7842 + d46567e commit 8438bac
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 42 deletions.
28 changes: 10 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# PHPProjectGen
<table class="framed light" border="">
<tbody><tr>
<td align="center"><a href="https://www.phpclasses.org/" title="PHP Classes" alt="PHP Classes"><img src="https://files.phpclasses.org/graphics/phpclasses/logo-small-phpclasses.svg" width="275" alt="PHP Classes" style="vertical-align: top"></a><br>
<hr>
<b><a href="https://www.phpclasses.org/package/10938-PHP-Generate-files-for-a-Composer-skeleton-project.html">PHP Project Structure Composer Generator</a><br>
By <a href="https://www.phpclasses.org/browse/author/337051.html">ELMINSON DE OLEO</a></b><br>
<a href="https://www.phpclasses.org/award/innovation/"><img src="https://www.phpclasses.org/award/innovation/nominee.gif" width="89" height="89" alt="PHP Programming Innovation award nominee" title="PHP Programming Innovation award nominee" border="0"></a><br><b><span style="font-size: large">October 2018<br>
Nominee<br>
<a href="https://www.phpclasses.org/vote.html">Vote</a></span></b></td>
</tr>
</tbody></table>
<br>
Set all necessary components to create a skeleton project in PHP (composer) with PHPunit test cases.
PHP Classes <br>
[![PHP Classes]](https://www.phpclasses.org/package/10938-PHP-Generate-files-for-a-Composer-skeleton-project.html)


Packagist <br>
Expand Down Expand Up @@ -45,14 +36,15 @@ composer create-project elminson/phpprojectgen
Configure your package (config.json)
```json
{
"name": "Elminson",
"name": "Company",
"projectname": "NewProject",
"description": "Project description",
"phpunit": true,
"developer": "Elminson De Oleo Baez",
"email": "[email protected]",
"phpunitversion": "~9",
"developer": "author",
"email": "[email protected]",
"license": "MIT",
"minimum-stability": "dev",
"minimum-stability": "stable",
"type": "project"
}
```
Expand All @@ -69,8 +61,8 @@ tests/testNewProject.php
composer.json
README.md
```
After unzip the file you have to run
After unzip the file you have to run
```php
composer install
```
and you will have your project up and running in 5 minutes or less.
and you will have your project up and running in 30 seconds or less.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"description": "Set all necessary components to create a skeleton project in php",
"type": "project",
"require": {
"phpunit/phpunit": "^9",
"nelexa/zip": "^4.0.2"
"phpunit/phpunit": "dev-main",
"nelexa/zip": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "^9"
"phpunit/phpunit": "dev-main"
},
"license": "MIT",
"authors": [
Expand Down
10 changes: 5 additions & 5 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "Elminson",
"name": "Company",
"projectname": "NewProject",
"description": "Project description",
"phpunit": true,
"phpunitversion": "^9",
"developer": "Elminson De Oleo Baez",
"email": "edeoleo@gmail.com",
"phpunitversion": "~9",
"developer": "author",
"email": "author@email.com",
"license": "MIT",
"minimum-stability": "dev",
"minimum-stability": "stable",
"type": "project"
}
16 changes: 0 additions & 16 deletions generate.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: elminsondeoleobaez
* Date: 10/3/18
* Time: 5:52 PM
*/

//@todo json file? with data for composer and classes
//@todo form data,
//@todo Developer_name, Project_name, phpunit? (checkbox),
//@todo Create folders (src, tests)
//@todo Create MainClass => src (add autoload.php)
//@todo Create composer.json file
//@todo Create Test Cases class
//@todo Create Readme.md file
//@todo Zip content

namespace Elminson\PHPProjectGen;

Expand Down

0 comments on commit 8438bac

Please sign in to comment.