Download the PHP package andheiberg/theme without Composer

On this page you can find all versions of the php package andheiberg/theme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package theme

Theme

A simple modular approach to theming created to blend in with Blade.

The concept is to split your theme up into modules that can be reused and changed easily. These modules are stored as simple view files in resources/views/vendor/theme. An example of a typical module could be a hero unit. You would store your hero model like so:

+@form(['route' => 'auth.register'])
    +@formText('username', 'What do you want to be called?')->placeholder('darthvader')

    +@formPassword('password') // if you don't provide a label it will capitalize the key

    +@formHidden('awesomeness', 11)

    +@formSelect('gender', 'Your gender', ['Male', 'Female'])->required()

    +@formDate('born_at', 'Birthdate')
-@form

It's especially powerful for forms. By default it will fill old values and show validation messages. It reduces view code by +10x for typical forms.

It can be used for anything though. Modules are easy to define.

// resources/views/vendor/theme/hero.blade.php
<div class="hero row {{ $class }}">
    <div class="column">

<!-- Content -->

    </div>
</div>

This module can then intern be used from a view like so:

+@hero()
    <h1>It might be yet another twitter client, but this one is really nice</h1>
    <p>Seriously I mean it I wouldn't want to disapoint you, but it's amazing.</p>
-@hero

As you can see the html comment seperates the start and ending of modules. If you choose to exclude this comment you could create a module like so:

// app/views/theme/button.blade.php
<a class="button {{ $class }}" href="{{ $link }}">{{ $text }}</a>

And use it like so (without an ending tag):

+@button('url', 'text')

Also multiword modules are like so:

// app/views/theme/page-header.blade.php
<div class="page-header {{ $class }}">
<!-- Content -->
</div>

And called like so:

+@pageHeader()
    <h1>Some header</h1>
-@pageHeader

Why is this helpful?

Installation

Add the following to your composer.json:

"andheiberg/theme": "4.0.*" // "1.0.*" for Laravel 4.1 support, "2.0.*" for Laravel 4.2 support, "3.1.*" for Laravel 5 and 5.1 support

Add Theme's service provider to your Laravel application in config/app.php. Add the following to the providers:

Andheiberg\Theme\ThemeServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,

And to the aliases:

'Form' => Collective\Html\FormFacade::class,

If you would like to use another theme than default you would have to publish the settings and change the theme setting:

php artisan vendor:publish --provider="Andheiberg\Theme\ThemeServiceProvider"

All versions of theme with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version >=4.0.0 <6.0.0
illuminate/view Version >=4.0.0 <6.0.0
illuminate/translation Version >=4.0.0, <6.0.0
laravelcollective/html Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package andheiberg/theme contains the following files

Loading the files please wait ....