PHP toolkit that offers you some nice helpers like missing functions etc...
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.resources
.scripts
app
data
doc
public
src
tests
.editorconfig
.env.example
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.txt
README.md
composer.json
package-lock.json
package.json
phpunit
phpunit.xml
test.php
yarn.lock

README.md

Thorin

Thorin

Thorin is a pretty simple toolkit that gives you a lot of cool helpers functions in multiple areas like:

Functions

Classes

Table of content

  1. Goals
  2. Install
  3. Documentation
  4. Contribute
  5. License
  6. Who are Dwarvesforge

Goals

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.

Install

composer require dwarvesforge/thorin

You can install the Thorin Visual Studio Code Snippets Extension to help you using the package.

Get Started

To start using Thorin you have two choices. The first is the simplier the second the harder.

First solution

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

Second solution

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:

Specify where your config files are

First choice, using the .env file at the root of your project

T_CONFIG_PATH=/something/absolute/to/the/server/root/

Or by defining a constant like so BEFORE loading Thorin:

define('T_CONFIG_PATH', '/something/absolute/to/the/server/root/');

The default value for this config is app/config/

Changing the path of each modules individually

To do so, you'll need to create some config files to override the default configs that you can find here:

To override some config, simply create a file with the same name in your config folder and override it inside this file.

.env file

The .env file can contains a set of environment variables. Here's the file that document them:

Contribute

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:

  1. Share the love ❤️
  2. Declare issues
  3. Fix issues
  4. Add features

License

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...

Who are Dwarvesforge

We try to be some cool guys that build some cool tools to make our (and yours hopefully) every day life better.

More on who we are