Download the PHP package sunveloper/teepluss-themes without Composer

On this page you can find all versions of the php package sunveloper/teepluss-themes. 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 teepluss-themes

Laravel logo Laradic Themes for Laravel 5

Build Status GitHub Version Code Coverage Total Downloads License

Version 0.3

Laravel 5 package providing multi-theme inherited cascading support for views and assets.


Overview


Todo for 1.0

Installation

Composer
Laravel

Add the ThemesServiceProvider to your config.

Optionally, you can add any of the Facades below:

Configuration

<sub>[^](#top)</sub>

First time usage guide and explenation

Open up the laradic.config.php file. For first time use, just change the theme folder path to your desired location.

Save it and run php artisan themes:init. This will generate a few folders and files matching the default config settings. It only serves as an example, showing the directory structure for a theme and theme view inheritance.

Loading a view file is the same as normal.

Inheritance system basics

Load priority [Active Theme View Folder]() > [Parent Theme View Folder(if set)]() > [Default Theme View Folder]() > [Default Laravel View Folder]()

If you understand that, skip these points. Otherwise, more details about this:

The same goes for loading Views, Assets, etc.

Cascade system basics

To put it simply, every theme can have "sub-themes". Inside a theme folder, you notice the namespaces and packages folder.

To create a namespace

For example:

To create package

A package need to be in 2 directories.

The same goes for assets

Views/Themes

The active and default theme can be set in the configuration by altering the active and default keys.
You can set the active theme on the fly by using Theme::setActive('theme/slug').
You can set the default theme on the fly by using Theme::setDefault('theme/slug').

Common methods overview

Check out the API documentation for the full list of methods.

Themes (Facade => ThemeFactory)
Function call Return type Description
Themes::setActive($theme) self Set the active theme, $theme can be a Theme instance or the slug string of that theme
Themes::getActive() Theme Returns the active theme
Themes::setDefault($theme) self Set the default theme, $theme can be a Theme instance or the slug string of that theme
Themes::getDefault() Theme Returns the default theme
Themes::resolveTheme($slug) Theme Resolve a theme using it's slug. It will check all theme paths for the required theme.
Themes::all() string[] Returns all resolved theme slugs
Themes::get($slug) Theme Returns the theme instance if the theme is found
Themes::has($slug) bool Check if a theme exists
Themes::count() int Get the number of themes
Themes::addNamespace($name, $dirName) self Add a namespace to the theme
Themes::getPath($type) string Get a path for the type (assets, views, namespaces, packages)
Theme (instance of a theme)
Function call Return type Description
Theme::getConfig() array The array from theme.php
Theme::getParentTheme() Theme ..
Theme::getParentSlug() string ..
Theme::hasParent() bool ..
Theme::getSlug() string ..
Theme::getSlugKey() string ..
Theme::getSlugProvider() string ..
Theme::getName() string ..
Theme::isActive() bool ..
Theme::isDefault() bool ..
Theme::isBooted() bool ..
Theme::boot() void ..
Theme::getVersion() SemVer ..
Theme::getPath() string ..
Theme::getCascadedPath() string ..

Assets

The Asset Facade links to AssetFactory. It should not be confused with the Asset class that Asset::make returns, which actually holds asset data.

Note $path is the same as with Views (namespaces, packages, etc)

Function call Return type Description
Asset::make($path); Asset<FileAsset> Returns the asset instance
Asset::url($path); string Returns the asset URL
Asset::uri($path); string Returns the asset uri
Asset::script($path, array $attr = [ ], $secure = false)); string Renders the asset in a <script src=""> tag
Asset::style($path, array $attr = [ ], $secure = false)); string Renders the asset in a <link ..> tag
Asset::group($name); AssetGroup Returns an AssetGroup, more details below
Asset::addGlobalFilter($extension, $callback); void Add global Assetic filter, to be applied on all assets with matching extension
Asset::setCachePath($path); string Returns the filesystem path to the asset file
Asset::getCachePath(); string Returns the filesystem path to the asset file
Asset::deleteAllCached(); string Returns the filesystem path to the asset file
Asset::setAssetClass("Full\Class\Name"); string Returns the filesystem path to the asset file
Asset::setAssetGroupClass("Full\Class\Name"); string Returns the filesystem path to the asset file
AssetGroup

Is used to group assets. Has several features you could use:

The theme file

Beside the obvious fields, the boot field is rather important. Use the boot field closure to register namespaces for your theme, define assets and asset groups, and other global stuff.

Navigation/Breadcrumbs

Console Commands

List publishers
Publish a theme
Creating a theme
Creating the initial theme structure (ment as example)

Copyright/License

Copyright 2015 Robin Radic - MIT Licensed


All versions of teepluss-themes with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version ^5.0 || ^6.0 || ^7.0 || ^8.0
illuminate/view Version ^5.0 || ^6.0 || ^7.0 || ^8.0
sunveloper/teepluss-support Version ^4.0.4
sunveloper/teepluss-console Version ^4.0.2
sunveloper/kriswallsmith-assetic Version ^1.4.0
vierbergenlars/php-semver Version ^3.0.2 || ^4.0 || ^5.0
laravelcollective/html Version ^5.0 || ^6.0 || ^7.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 sunveloper/teepluss-themes contains the following files

Loading the files please wait ....