Download the PHP package nf/input without Composer
On this page you can find all versions of the php package nf/input. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package input
Extension Kit
It's an extension kit for our theme https://github.com/hieu-pv/nf-theme
- Installation
- Configuration
- Compile asset file
- Service
- Working with local repository
- Extension Configuration
Installation
Clone repository
Update your information
If you want provide some function that is bootstrapped when wordpress start, we will register them in src/ExtensionKitServiceProvider.php
For example: register css/js file
then in config/app.php
of the theme we have to register service provider
Compile asset file
{tip} You can write your own javascript in
/assets/scripts/app.js
and css in/assets/styles/app.scss
All compiled file will be located in /assets/dist
Install node module
Run asset compiler
Run asset compiler on production mode
Watch file change and compile
{tip} You can write your own config in
webpack.config.js
Service
Blade is the simple, yet powerful templating engine provided with this kit. You can use it via NightFury\ExtensionKit\Facades\View
{tip} Blade file are located in
/resources/views
For example we have a file /resources/views/example.blade.php
then we can use this file by following code
For more information about blade engine https://laravel.com/docs/5.5/blade
Working with local repository
In addition to the artifact repository, you can use the path one, which allows you to depend on a local directory, either absolute or relative. This can be especially useful when dealing with monolithic repositories.
To add local repository to your project, add the following code to your composer.json then run command composer install
For example
For more information https://getcomposer.org/doc/05-repositories.md
Extension Configuration
In some case we need some configuration from user, we can use nf/theme-option
package
Checkout package repository for install and supported field https://github.com/hieu-pv/nf-theme-option