Download the PHP package wangta69/laravel-index-now without Composer

On this page you can find all versions of the php package wangta69/laravel-index-now. 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 laravel-index-now

Laravel IndexNow & Google Indexing Package

Production Used

This library is successfully used in production at gilra.kr (Online Fortune Service).
이 라이브러리는 길라(gilra.kr) 실서버에서 안정적으로 운영되고 있습니다.


Laravel에서 IndexNow APIGoogle Indexing API를 쉽고 통합적으로 사용할 수 있도록 도와주는 패키지입니다.
콘텐츠 생성·수정·삭제 시 검색엔진(Google, Bing, Naver 등)에 URL을 즉시 전송하여 빠른 색인(Fast Indexing)을 유도합니다 ⚡


Installation


Configuration

config/pondol-indexnow.php 파일을 통해 각 검색엔진 사용 여부를 설정할 수 있습니다.


How to Use

URL을 전송하는 방법은 매우 간단합니다.

✅ Queue(Job) 기반으로 동작하므로 queue:work 실행이 필요합니다.


🚀 Google Indexing API 설정 가이드 (중요)

구글은 별도의 인증 절차가 필요합니다. 아래 4단계를 반드시 진행해야 합니다.

1️⃣ Google Cloud 프로젝트 및 API 활성화

  1. Google Cloud Console에 접속하여 새 프로젝트를 생성합니다.
  2. 좌측 메뉴에서 API 및 서비스 > 라이브러리로 이동합니다.
  3. 검색창에 Web Search Indexing API를 검색합니다.
  4. 사용(Enable) 버튼을 눌러 API를 활성화합니다. (필수)

2️⃣ 서비스 계정 생성 및 키 다운로드

  1. IAM 및 관리자 > 서비스 계정으로 이동합니다.
  2. 서비스 계정 만들기를 클릭합니다.
    • 이름: 원하는 대로 입력 (예: indexing-bot)
    • 역할(Role): 소유자(Owner) 선택 (권장)
  3. 생성된 서비스 계정 목록에서 이메일 주소(~@~.iam.gserviceaccount.com)를 복사해 둡니다. (3단계에서 사용)
  4. 해당 계정의 키(Keys) 탭으로 이동합니다.
  5. 키 추가 > 새 키 만들기 > JSON을 선택하여 다운로드합니다.

3️⃣ 구글 서치 콘솔(Search Console) 권한 부여

⚠️ 이 단계를 건너뛰면 403 Forbidden 에러가 발생합니다.

  1. 구글 서치 콘솔에 접속하여 연동할 사이트를 선택합니다.
  2. 설정(Settings) > 사용자 및 권한(Users and permissions)으로 이동합니다.
  3. 사용자 추가(Add User)를 클릭합니다.
  4. 아까 복사한 서비스 계정 이메일을 입력합니다.
  5. 권한을 반드시 소유자(Owner)로 설정하고 추가합니다.

4️⃣ 키 파일 업로드 및 설정

  1. 다운로드한 JSON 파일의 이름을 google-api-key.json (또는 원하는 이름)으로 변경합니다.
  2. 라라벨 프로젝트의 storage/app/ 폴더 안에 파일을 업로드합니다.
  3. config/pondol-indexnow.php 파일에서 google.enabledtrue로 변경하고 파일명을 확인합니다.

🌏 IndexNow Key 설정 가이드 (Bing & Naver)

IndexNow는 도메인 소유 증명용 Key 파일을 요구합니다. 하나의 Key로 Bing과 Naver에서 공통으로 사용할 수 있습니다.

1️⃣ Key 발급 (Bing)

  1. Bing IndexNow 페이지 접속
  2. Generate API Key 클릭하여 Key 문자열 복사

2️⃣ Key 파일 생성 및 업로드

웹 루트(public) 폴더에 Key 값과 동일한 이름의 텍스트 파일을 생성합니다.

3️⃣ .env 설정

4️⃣ 확인

브라우저에서 https://yourdomain.com/{INDEXNOW_KEY}.txt 접속 시 내용이 보여야 합니다.

Naver 설정: Bing에서 발급받은 Key 파일을 그대로 두시고, 네이버 서치어드바이저에 사이트 소유 확인만 되어 있으면 자동으로 연동됩니다.


지원 API


실행하기 (Queue Worker)

전송 속도 저하를 막기 위해 비동기 처리를 권장합니다.

추천: 비동기식 (Database Queue)

.env 파일 설정:

Queue 실행 (Supervisor 등을 이용해 백그라운드 실행 권장):

참고: 동기식 (개발 테스트용)

즉시 실행되어 결과를 바로 확인할 수 있지만, 사용자 응답이 느려질 수 있습니다.


License

MIT


All versions of laravel-index-now with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
guzzlehttp/guzzle Version ^7.9
google/apiclient Version ^2.15.0
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 wangta69/laravel-index-now contains the following files

Loading the files please wait ...