PHP code example of wikibase / import
1. Go to this page and download the library: Download wikibase/import library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wikibase / import example snippets
LocalSettings.php
update.php
php maintenance/importEntities.php --entity Q147
php maintenance/importEntities.php --file presidents.csv
php maintenance/importEntities.php --all-properties
php maintenance/importEntities.php --query P131:Q64
php maintenance/importEntities.php --range Q1:Q20