Download the PHP package rossmcneil/googlefontsloader without Composer
On this page you can find all versions of the php package rossmcneil/googlefontsloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rossmcneil/googlefontsloader
More information about rossmcneil/googlefontsloader
Files in rossmcneil/googlefontsloader
Package googlefontsloader
Short Description :description
License MIT
Homepage https://github.com/rossmcneil/googlefontsloader
Informations about the package googlefontsloader
Google Fonts Loader
A small Laravel package to load google fonts into your application.
Installation
1 - Dependency
The first step is using composer to install the package and automatically update your composer.json
file, you can do this by running:
Note: If you are using Laravel 5.5, the steps 2 and 3, for providers and aliases, are unnecessaries. GoogleFontsLoader supports Laravel new Package Discovery.
2 - Provider
You need to update your application configuration in order to register the package so it can be loaded by Laravel, just update your config/app.php
file adding the following code at the end of your 'providers'
section:
config/app.php
3 - Facade
In order to use the GoogleFontsLoader
facade, you need to register it on the config/app.php
file, you can do that the following way:
4 Configuration
Publish config
In your terminal type
or
In googlefontsloader.php
configuration file you can determine the properties of the default values and some behaviors.
googlefontsloader.php
fonts
- Is an array of fonts you wish to load in. display
- Is the value used for the font-display setting.
Usage
In Your View
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- [Ross McNeil][https://rossmcneil.com]
License
Please see the license file for more information.