The Enhanced Laravel Project Seeder gets new Laravel projects up-and-running fast. Features self-contained testing (no pear or global testing package required).
After starting a few projects with Laravel, I realized I was repeating myself a lot in my first few steps, setting up the same things just to get going. This project is meant to alleviate that problem, so I can get rolling on the actual project fast.
This package is not meant to be a dependency for other projects. It's meant to be used with Composer's
This is meant mostly for my benefit, and in some regards is highly opinionated. But if it's helpful to you, you're welcome to start your own Laravel based projects with it, or fork it and customize it to your needs.
There's a significant change to the layout from the base Laravel install. In anticipation of making more advanced projects, I've started following more advanced practices that involve breaking things up far beyond the basic MVC layout. Most of the files have moved out of the
app directory into
src. Everything is namespaced, and seperated into composers, observers, repositories, and lots of other parts. I've mostly followed the first part of Dayle Rees' "Breaking the Mold".
Laravel, of course. Wouldn't be much of a Laravel project seeder without that. It's version 4.2 right now.
Lots of projects use Bootstrap for their front end framework, so version 3.1 of that is included. Also included is Bootstrapper, a Laravel way to generate Bootstrap compatible markup. handy for complex things like menus.
Testing is important, if for no other reason than the developer's peace of mind. Therefore the seeder includes Codeception framework and Mockery. These tools make testing easier, almost fun, and therefore more likely testing will actually happen.
Continuous integration is a great way to automate testing and maintenance. Configuration files for several CI services are included. Travis runs all the tests on push and pull requests. Scrutinizer runs a variety of scripts to check your code for security holes, sloppy code, and coding style problems. Keep in mind you still need to turn each service on for your project.
IDEs and code editors don't really understand the Laravel facade system, and so they have trouble giving you code suggestions and documentation for a lot of Laravel's functionality. To compensate for this, the Laravel IDE Helper Generator is included. Each time you update in Composer, a helper file is generated that your editor can understand.
Laravel 4 Debugbar is enabled in the development environment to provide information overload about what's happening when you load a page.
To help help speed up workflow, there's also Jeffrey Way's generators.
I currently use NetBeans as my IDE, so the files for a NetBeans PHP project come along too.
Composer must be installed on your system in order for this to work. But if you're working with Laravel, you probably have it installed all ready anyway.
- Open a command prompt in the directory where you keep your projects. For example, I'm running Windows and use
- Now run
composer create-project edrands/laravel-seeder project-namereplacing
project-namewith the name of the directory for all your project's file. This must be a non-existent or empty directory.
- Wait while Composer automatically downloads the seed, installs all the dependencies, generates an IDE code completion helper, and generates a random hashing key.
- Follow the steps in
todo.mdin the root directory of your new project.
- Get working on the specifics of your project.
If you'd like to contribute to this project, you can help in the typical GitHub way.
Issues and pull requests should be filed on the edrands/laravel-seeder repository.
Please keep in mind that since this seed is meant for the way I work, if you'd like customizations specific to the way you work, your best option is to fork this project and modify from there.
If your issue or pull request is related to Laravel itself, please see below about how to contribute to Laravel.
The Enhanced Laravel Project Seeder is open-sourced software licensed under the MIT license
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.
Laravel aims to make the development process a pleasing one for the developer without sacrificing application functionality. Happy developers make the best code. To this end, we've attempted to combine the very best of what we have seen in other web frameworks, including frameworks implemented in other languages, such as Ruby on Rails, ASP.NET MVC, and Sinatra.
Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.
Documentation for the entire framework can be found on the Laravel website.
All issues and pull requests should be filed on the laravel/framework repository.
The Laravel framework is open-sourced software licensed under the MIT license
You can delete from here up for your project's readme.
A description of this project, what it's about, what it does, how it works and why the reader should care.
Work on this project should strive to adhere to the following standards and models:
This project is open-sourced software licensed under the MIT license
Portions of this project may be subject to other copyrights and licenses.