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

Code updated to psr-4 autoload, php 7.1, psr-2 code style, added tests... #81

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea/
.DS_Store
vendor/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Next generate the migration file:
It will generate the `<timestamp>_setup_countries_table.php` migration and the `CountriesSeeder.php` seeder. To make sure the data is seeded insert the following code in the `seeds/DatabaseSeeder.php`

//Seed the countries
$this->call('CountriesSeeder');
$this->call('CountriesTableSeeder');
$this->command->info('Seeded the countries!');

You may now run it with the artisan migrate command:
Expand Down
21 changes: 13 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@
"MIT"
],
"require" : {
"php" : ">=5.3.0"
"php" : ">=7.1"
},
"autoload" : {
"psr-0" : {
"Webpatser\\Countries" : "src/"
},
"classmap" : [
"src/commands"
]
"psr-4" : {
"Webpatser\\Countries\\" : "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability" : "dev",
"support" : {
Expand All @@ -46,5 +48,8 @@
"Countries": "Webpatser\\Countries\\CountriesFacade"
}
}
}
},
"require-dev": {
"orchestra/testbench": "~3.3"
}
}
Loading