PHPackages                             smartapiphp/angelbroking - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. smartapiphp/angelbroking

ActiveLibrary[API Development](/categories/api)

smartapiphp/angelbroking
========================

1.3(5y ago)1291[1 issues](https://github.com/Anam-magnus/smartapi-php/issues)MITPHP

Since Mar 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Anam-magnus/smartapi-php)[ Packagist](https://packagist.org/packages/smartapiphp/angelbroking)[ RSS](/packages/smartapiphp-angelbroking/feed)WikiDiscussions Development Synced 1mo ago

READMEChangelog (4)DependenciesVersions (6)Used By (0)

SmartAPI - PHP Client SDK
=========================

[](#smartapi---php-client-sdk)

Installation
------------

[](#installation)

```
composer require smartapi-php/angelbroking
```

Import package to controller
----------------------------

[](#import-package-to-controller)

```
use AngelBroking\AngelBroking;

```

\####to download [click here](https://github.com//Anam-magnus/smartapi-php/archive/refs/tags/1.3.zip)

Getting started with API
------------------------

[](#getting-started-with-api)

```
  //in your function of controller create instance of AngelBroking class

    $ab = new AngelBroking();

    //Login
    $ab->GenerateSession("Client-code","password");

    //methods
    $token = $ab->GenerateToken();

    $profile = $ab->GetProfile();

    $ab->LogOut(array('clientcode'=>'your client-code'));

    $rms = $ab->GetRMS();

    $order = $ab->PlaceOrder(array('variety' => 'NORMAL',
                                    'tradingsymbol'  =>  'JINDALSTEL-EQ',
                                    'symboltoken' => '6733',
                                    'exchange' => 'NSE',
                                    'transactiontype' => 'SELL',
                                    'ordertype' => 'LIMIT',
                                    'quantity' => '1',
                                    'producttype' => 'INTRADAY',
                                    'price' => 312.65,
                                    'squareoff' => 0
                                    'stoploss' => 0
                                    'duration' => 'DAY'));

     $modifyOrder = $ab->ModifyOrder(array('variety' => 'NORMAL',
                                    'tradingsymbol'  =>  'JINDALSTEL-EQ',
                                    'symboltoken' => '6733',
                                    'exchange' => 'NSE',
                                    'transactiontype' => 'BUY',
                                    'ordertype' => 'LIMIT',
                                    'quantity' => '1',
                                    'producttype' => 'INTRADAY',
                                    'price' => 200,
                                    'squareoff' => 0
                                    'stoploss' => 0
                                    'duration' => 'DAY',
                                    'orderid' =>210312000000394));

    $cancelOrder = $ab->CancelOrder(array('variety' => 'NORMAL',
                                      'orderid' => '210312000000394'));

    $GetOrderBook = $ab->GetOrderBook();

    $GetTradeBook = $ab->GetTradeBook();

    $GetHoldings =  $ab->GetHoldings();

    $GetPosition  = $ab->GetPosition();

    $ConvertPosition  = $ab->ConvertPosition(array("exchange"=>"NSE",
                                                "oldproducttype"=>"INTRADAY",
                                                "newproducttype"=>"MARGIN",
                                                "tradingsymbol"=>"JINDALSTEL-EQ",
                                                "transactiontype"=>"SELL",
                                                "quantity"=>"1",
                                                "type"=>"DAY"));

   $CreateRule  = $ab->CreateRule(array("tradingsymbol" => "SBIN-EQ",
                                      "symboltoken" => "3045",
                                      "exchange" => "NSE",
                                      "producttype" => "MARGIN",
                                      "transactiontype" => "BUY",
                                      "price" => 100000,
                                      "qty" => 10,
                                      "disclosedqty"=> 10,
                                      "triggerprice" => 200000,
                                      "timeperiod" => 365));

   $ModifyRule  = $ab->ModifyRule(array('id' => '1000059',
                                       "tradingsymbol" => "SBIN-EQ",
                                      "symboltoken" => "3045",
                                      "exchange" => "NSE",
                                      "producttype" => "MARGIN",
                                      "transactiontype" => "BUY",
                                      "price" => 100000,
                                      "qty" => 20,
                                      "disclosedqty"=> 10,
                                      "triggerprice" => 200000,
                                      "timeperiod" => 365));

    $CancelRule = $ab->CancelRule(array('symboltoken'  => '3045'
                                       'exchange'   =>   'NSE' ,
                                      'id'  => '1000059'));

    $RuleDetails = $ab->RuleDetails(array('id'=>'1000059'));

    $RuleList = $ab->RuleList(array( "status"=> [
                                      "NEW",
                                      "CANCELLED",
                                      "ACTIVE",
                                      "SENTTOEXCHANGE",
                                      "FORALL"
                                 ],
                                 "page"=> 1,
                                 "count"=> 10));

    $GetCandleData = $ab->GetCandleData(array("exchange"=> "NSE",
                                             "symboltoken"=> "3045",
                                             "interval"=> "MINUTE",
                                             "fromdate"=> "2021-02-08 09:00",
                                             "todate"=> "2021-02-08 09:16"));

```

Getting started with SmartAPI Websocket's
-----------------------------------------

[](#getting-started-with-smartapi-websockets)

```
 print_r($ab->SocketConnet($client-code, $feed-token, $task, $script));

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

1886d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f27162999126b6e67c74e23fd9690eaea159f11ade27f6672b6a5c39433beb2?d=identicon)[jkdobariya](/maintainers/jkdobariya)

---

Top Contributors

[![Anam-magnus](https://avatars.githubusercontent.com/u/80564052?v=4)](https://github.com/Anam-magnus "Anam-magnus (40 commits)")

### Embed Badge

![Health badge](/badges/smartapiphp-angelbroking/health.svg)

```
[![Health](https://phpackages.com/badges/smartapiphp-angelbroking/health.svg)](https://phpackages.com/packages/smartapiphp-angelbroking)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
