1. Go to this page and download the library: Download pdewit/nova-external-url 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/ */
pdewit / nova-external-url example snippets
use Pdewit\ExternalUrl\ExternalUrl;
ExternalUrl::make('Google Link', function () {
return 'https://www.google.com/search?q=' . $this->name;
}),
use Pdewit\ExternalUrl\ExternalUrl;
ExternalUrl::make('Google Link', function () {
return 'https://www.google.com/search?q=' . $this->name;
})->linkText($this->name),
use Pdewit\ExternalUrl\ExternalUrl;
ExternalUrl::make('Google Link', function () {
return 'https://www.google.com/search?q=' . $this->name;
})->labelText('View search results on Google'),
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.