Download the PHP package wikifab/explore without Composer

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

parsers usage :

explore Page :

Navigate to the page 'Spécial:WfExplore' to see the full explore page

explore Query :

'exploreQuery' function just display a list of tutorials, accordint to a semantic query

1st param is the query, the second param (optional) is the number limite of results to display. other named parameters can be set :

Ex : {{#exploreQuery: [[area::Électronique]] | 8}} {{#exploreQuery: [[area::Électronique]] | sort=editdate|limit=8}} {{#exploreQuery: [[area::Électronique]] | sort=editdate|limit=8| layout=event}}

displayExplore function

to display explorer in a page, insert the function displayExplore : {{#displayExplore: params}}

Input Box function

to add an input box to search pages using Special:WfExplore : {{#exploreinputbox:}}

you cant add 2 parameters : the first param is the button text, the second is the placehoder {{#exploreinputbox:GO| placeholder}}

configuration using global vars :

2 vars enable to configure filters params :

$wfexploreCategories = [ $categoriesName => [ CategorisValueName => CategorieValueLabel, ... ], ... ]

$wfexploreCategoriesNames = [ 'Type' => 'int:wfexplore-type' , 'area' => 'int:wfexplore-category', 'Difficulty' => 'int:wfexplore-difficulty', 'Cost' => 'int:wfexplore-cost', 'Complete' => 'Complete', ];

Note : using prefix 'int' enable to use translation key

configure layout to display results :

it is possible to change the layout of results, to do it, set the available layouts in LocalSettings.php : $wgExploreResultsLayouts = [ 'event' => DIR . '/views/layout-event.html' ];

then, when calling the explore with parser function in a page, set the 'layout' params : {{#displayExplore: layout=event}}

configure filters for layout

it is possible te define other filter when a layout is given:

$wfexploreCategoriesByLayout = [ 'event' => [ $categoriesName => [ CategorisValueName => CategorieValueLabel, ... ], ... ] ];

Wikifab Groups config

To configure explore for groups like wikifab, here is the config : (it set no filters for groups)

$wgExploreResultsLayouts = [ 'group' => DIR . '/extensions/WfextStyle/templates/layout-group-search-result.html' ];

$wfexploreCategoriesByLayout = [ 'group' => [] ];

default sort order

Default sort order can be configured using the $wfeSortField var in LocalSettings.php. For instance, to sort by date of last change : $wfeSortField = 'Modification date';

configuration using hooks :

Explore::OnGetFilters it is possible to change categories using hooks, this is recommended for internationalized wiki.

Record hooks in LocalSettings, and set a function, for example :

$wgHooks['Explore::getFilters'][] = 'onExploreGetFilters'; function onExploreGetFilters(& $filters, $layout) { $filters["Type"] = [ ['Oukou'] = 'Oukoukou', ['Ouka'] = 'Oukaka' ]; return true; }


All versions of explore with dependencies

PHP Build Version
Package Version
No informations.
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 wikifab/explore contains the following files

Loading the files please wait ....