Today my friend Stidges (opens in a new tab) and I are making a small contribution to open source community.
We are releasing the source code of a website that the two of us created together called Laravel Tricks (opens in a new tab). The purpose of the website is to give the Laravel (opens in a new tab) community ability to create small code snippets that could be helpful to other developers. This website has been live for a few months now and have been visited by more than 10,000 people with over 80 tips & tricks created by users since its launch.
The source is available at our new Github organization: https://github.com/CodepadME/laravel-tricks (opens in a new tab)
If you haven't seen it, the site looks like this:

The website is responsive, looks great on all devices thanks to customized Bootstrap framework and uses some third party packages not only to look good but also function well. It is packed with cool features. Features of Laravel-tricks:
- Multi User platform that enables registered users to post short excerpts of code and descriptions to go along with the code.
- Syntax highlighting using Highlight.js (opens in a new tab)
- Code editing with ACE editor (opens in a new tab)
- Sorting and search.
- Categories and tags for each user submitted entry using Selectize.js (opens in a new tab).
- OAuth 2 Github Registration and Login using OAuth 2 client from PHP League (opens in a new tab).
- Disqus integration for commenting.
- Customized Bootstrap (opens in a new tab) theme.
- AJAX favoriting.
- Gravatar integration.
- Using jQuery FileAPI (opens in a new tab) for avatar uploads and cropping.
- Using Intervention Image (opens in a new tab) to handle the server side of the avatar uploads.
- Admin panel for editing/creating tags and categories
- Pinterest-inspired grid implemented with Masonry (opens in a new tab).
- Presenter classes implemented with the Laravel Auto Presenter (opens in a new tab) package.
Knowing how these features are implemented in Laravel could be helpful to a lot of developers starting out with Laravel PHP framework.
Why releasing the source?
Stidges (opens in a new tab) and I felt strongly about this from day 1. We believe that good quality code that solves real problems should be made public for others to learn from. The features that this application implements (like avatar cropping and upload, tagging, categorizing, customized Bootstrap CSS, etc) could serve as a useful base for other developers that are seeking high quality solutions to these common problems.
What can you do with it?
You could learn from the source or you could reuse the code we created to power a similar website entirely. The very permissive MIT license allows you to do whatever the heck you want, and in fact it would be flattering if we saw websites like these pop up:
- Angular-tricks
- Backbone-tricks
- Bootstrap-tricks
- Ember-tricks
- HTML-tricks
- Anything-tricks
Please feel free to use our work to power your websites, we don't require any credit but credit (or Gittip (opens in a new tab)) would be appreciated.
Again, the source is available at our new Github organization: https://github.com/CodepadME/laravel-tricks (opens in a new tab) Please star the repo as a token of appreciation.
Enjoy!