manasija / drishti-sdk
PHP client for the Drishti API (/v1): Indian stock market news, filings, earnings, concalls and real-time WebSocket feeds
Requires
- php: >=8.2
- ext-json: *
- guzzlehttp/guzzle: ^7.8 || ^8.0
- guzzlehttp/psr7: ^2.6 || ^3.1
- phrity/websocket: ^3.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.1 || ^2.0
- psr/log: ^2.0 || ^3.0
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-16 12:22:57 UTC
README
Drishti SDK
Official HTTP and WebSocket client libraries for Alpha API (/v1) using API key authentication.
Drishti is an Indian stock market API for building research, monitoring, and agent workflows around listed companies. Use these SDKs when an application needs structured market context, exchange filings, announcements, earnings, conference calls, news, or real-time updates.
| Package | Directory | Package name |
|---|---|---|
| Python SDK | python/ |
drishti-sdk on PyPI (import drishti_sdk) |
| TypeScript SDK | js/ |
drishti-sdk on npm |
| PHP SDK | php/ |
manasija/drishti-sdk on Packagist (namespace Drishti\) |
| MCP installer | mcp/ |
drishti-mcp on npm |
See python/README.md, js/README.md, php/README.md, and mcp/README.md for install and usage.
All SDKs pass the shared conformance suite, so they behave the same.
Getting started: create a Drishti API key and read the Drishti API documentation.
PHP install (PHP 8.2+):
composer require manasija/drishti-sdk
JavaScript / TypeScript install options:
npm install drishti-sdk
Browser bundle via CDN (demos and prototypes only):
<script src="https://cdn.jsdelivr.net/npm/drishti-sdk"></script> <script> const { DrishtiClient } = DrishtiSDK; </script>
Warning: API keys in the browser are visible to users. Prefer npm on the server for production, or proxy Drishti through your backend.
MCP installer (drishti-mcp)
The mcp/ package is a CLI wizard that adds the hosted Drishti MCP endpoint to
supported LLM clients (Cursor, VS Code, Zed, Codex, Claude Code, Antigravity CLI).
npx drishti-mcp
See mcp/README.md for details. Package source lives in mcp/ on npm as
drishti-mcp after publish.
Agent Skill
This repository includes a Drishti SDK skill for coding agents under
skills/drishti-sdk/.
Install it with:
npx skills add manasijatech/drishti-sdk