PHP toolkit that offers you some nice helpers, missing functions, advanced capabilities through vendors, etc...
This package is auto-updated.
Last update: 2020-04-30 00:37:03 UTC
Thorin is a pretty simple toolkit that gives you a lot of cool helpers functions in multiple areas like:
The main goal of this toolkit is to give you some nice and powerful features through a simple API. We will make this package grow every time we encounter and implement some nice functions/classes/helpers.
composer require dwarvesforge/thorin
You can install the Thorin Visual Studio Code Snippets Extension to help you using the package.
To start using Thorin you have two choices. The first is the simplier the second the harder.
Create the files/folders structure described bellow and start using Thorin with his full power right now:
- | .env
- | app
- |--- cache
- |------- views
- |--- config
- |--- lang
- |------- en
- |--- views
- | public (document root)
- |--- dist
The second solution require that you set the various configurations by yourself if you need another folders structure. To do so, you'll need first:
First choice, using the
.env file at the root of your project
Or by defining a constant like so BEFORE loading Thorin:
The default value for this config is
To do so, you'll need to create some config files to override the default configs that you can find here:
- Application config :
- Cache config :
- DB config :
- Email config :
- Filesystem config :
- i18n config :
- Image config :
- Path config :
- Recaptcha config :
- Session config :
To override some config, simply create a file with the same name in your config folder and override it inside this file.
.env file can contains a set of environment variables. Here's the file that document them:
- Example :
Dwarvesforge is an open source project and will ever be! You are more that welcomed to contribute to his development and make it more awesome every day. To do so, you have several possibilities:
The code is available under the MIT license. This mean that you can use, modify, or do whatever you want with it. This mean also that it is shipped to you for free, so don't be a hater and if you find some issues, etc... feel free to contribute instead of sharing your frustrations on social networks like an asshole...
We try to be some cool guys that build some cool tools to make our (and yours hopefully) every day life better.