kunjara / jyotish Goto Github PK
View Code? Open in Web Editor NEWPHP library for calculations in Vedic astrology
Home Page: http://jyotish.su
PHP library for calculations in Vedic astrology
Home Page: http://jyotish.su
Use the following code in index.php
echo '<pre>'; print_r($Analysis -> getBodyInBhava('D1')); echo '</pre>';
OUTPUT
Array
(
[Sy] => 12
[Ch] => 12
[Ma] => 11
[Bu] => 11
[Gu] => 3
[Sk] => 11
[Sa] => 4
[Ra] => 4
[Ke] => 10
[Lg] => 1
[MLg] => 9
[IL] => 10
[SL] => 6
)
I finally managed to run this library.
I just need help on the degrees that are displayed, some of them are incorrect.
Name | Degree | Sign |
---|---|---|
Lg | 30.5641445 | 2 |
MLg | 284.8969428 | 10 |
IL | 319.0930604 | 11 |
SL | 186.0767753 | 7 |
Sy | 12.6340374 | 1 |
Ch | 19.0930604 | 1 |
Ma | 351.8991198 | 12 |
Bu | 346.0644504 | 12 |
Gu | 97.005043 | 4 |
Sk | 341.1123327 | 12 |
Sa | 133.6469937 | 5 |
Ra | 141.5129365 | 5 |
Ke | 321.5129365 | 11 |
Correct
Ascendant 1 - Krittika Sun 0° 35′ Taurus Venus
Jupiter 3 8,11 Pushya Saturn 7° 00′ Cancer Moon
Saturn 4 9,10 Purva Phalguni Venus 13° 39′ Leo Sun
Rahu 4 10 Purva Phalguni Venus 21° 31′ Leo Sun
Mercury 11 2,5 Uttara Bhadrapada Saturn 16° 04′ Pisces Jupiter
Venus 11 1,6 Uttara Bhadrapada Saturn 11° 07′ Pisces Jupiter
Mars 11 7,12 Revati Mercury 21° 54′ Pisces Jupiter
Sun 12 4 Ashwini Ketu 12° 38′ Aries Mars
Moon 12 3 Bharani Venus 19° 06′ Aries Mars
Ketu 10 7 Purva Bhadrapada Jupiter 21° 31′ Aquarius Saturn
Please help what is wrong
$Locality = new Locality([
'longitude' => "77.70",
'latitude' => "28.98",
'altitude' => 0,
]);
$DateTime = new DateTime();
$DateTime->setTimezone(new DateTimeZone('Asia/Kolkata'));
$DateTime->setDate(1979, 4, 27);
$DateTime->setTime(6,45);
How to generate AshtakaVarga details? I am not able to use anything under Bala ... There is no direct function to call it?
I am trying to setup on local machine and getting errors while using composer install
- Downloading symfony/yaml (3.4.x-dev 88289ca)
- Downloading sebastian/version (2.0.1)
- Downloading sebastian/resource-operations (1.0.0)
Failed to download kunjara/swetest from dist: curl error 28 while downloading https://api.github.com/repos/kunjara/swetest/zipball/b7c1e1bd2acd0597926f0e0071724beae1e39587: Connection timed out after 10000 milliseconds
Now trying to download from source
- Syncing kunjara/swetest (1.0) into cache
Failed to download hamcrest/hamcrest-php from dist: curl error 28 while downloading https://api.github.com/repos/hamcrest/hamcrest-php/zipball/26968e9810ff0d1aa48f6d67a862559d92a51884: Connection timed out after 10000 milliseconds
Now trying to download from source
- Syncing hamcrest/hamcrest-php (1.2.x-dev 26968e9) into cache
If I try to access these links using browser than the file download fine. At the end the vendor folder only have folders but no files.
Please could someone share the complete vendor folder as zip file. I am not familiar with PHP.
Use the following code in index.php.
echo '<pre>'; print_r($Analysis -> getRashiInBhava('D1')); echo '</pre>';
OUTPUT
Array
(
[2] => 1
[3] => 2
[4] => 3
[5] => 4
[6] => 5
[7] => 6
[8] => 7
[9] => 8
[10] => 9
[11] => 10
[12] => 11
[1] => 12
)
NOTE: Rashi is first and then house number
Use the following code in index.php.
echo '<pre>'; print_r($Analysis -> getBhavaRulers(['1','2','3','4','5','6','7','8','9','10','11','12'], 'D1')); echo '</pre>';
Please note there is an issue in code and it does not display all house rulers. To fix this
\src\Base\Analysis.php
comment the following line
$rulers = array_unique($rulers);
public function getBhavaRulers(array $bhavas, $vargaKey = Varga::KEY_D1)
{
$vargaKeyUcf = ucfirst($vargaKey);
$data = $this->getVargaData($vargaKeyUcf);
$rulers = [];
foreach ($bhavas as $bhava) {
$Rashi = Rashi::getInstance($data['bhava'][$bhava]['rashi']);
$rulers[] = $Rashi->rashiRuler;
}
//$rulers = array_unique($rulers);
return $rulers;
}
output
Array
(
[0] => Sk
[1] => Bu
[2] => Ch
[3] => Sy
[4] => Bu
[5] => Sk
[6] => Ma
[7] => Gu
[8] => Sa
[9] => Sa
[10] => Gu
[11] => Ma
)
NOTE: 0 means 1st house and so on.
When i checked the output for following birthrate, east style and north style display has problems. (East style is incorrectly rendered)
$datetime_data = new DateTime('1987-09-09 14:27:00', new DateTimeZone('Asia/Colombo'));
$locality_data = array(
'longitude' => 79.51,
'latitude' => 6.53,
'altitude' => 0.01
);
Hi ,
I am facing problem that how to use it.
please upload any documentation or any documentation .I am very forward to use it.
Thanks in advance
I was able to setup the code and run index.php using XAMPP using PHP 5.6 version.
index.php
<?php
require './vendor/autoload.php';
use Jyotish\Base\Data;
use Jyotish\Base\Locality;
use Jyotish\Base\Analysis;
use Jyotish\Ganita\Method\Swetest;
use Jyotish\Dasha\Dasha;
$Locality = new Locality([
'longitude' => "11.09",
'latitude' => "79.6",
'altitude' => 0,
]);
$DateTime = new DateTime();
$DateTime->setTimezone(new DateTimeZone('Asia/Kolkata'));
$DateTime->setDate(2017,09,26);
$DateTime->setTime(19,18);
$Ganita = new Swetest(["swetest" => "./vendor/kunjara/swetest/win/"]);
// for linux
// run sudo apt install libswe-dev
// after that use
// $Ganita = new Swetest(["swetest" => "/usr/bin/"]);
$data = new Data($DateTime, $Locality, $Ganita);
// To Calculate Panchangam
$data->calcParams();
$data->calcRising();
$data->calcPanchanga();
// To calculate Upagraha
$data->calcUpagraha();
// To calculate Birth chart Divisions
$data->calcVargaData(["D1","D2","D3","D4","D7","D9","D10","D12",
"D16","D20","D24","D27","D30","D40","D45","D60"]);
I am however getting the following errors and no idea what is wrong. I also checked "vendor\kunjara\swetest\win" for swetest.exe and it is present. Please any help on solving the issue
Notice: Undefined offset: 2 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 281
Notice: Undefined offset: 2 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283
Notice: Undefined offset: 3 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283
Notice: Undefined offset: 5 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284
Notice: Undefined offset: 6 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284
Notice: Undefined offset: 3 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 281
Notice: Undefined offset: 2 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283
Notice: Undefined offset: 3 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283
Notice: Undefined offset: 5 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284
Notice: Undefined offset: 6 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284
Notice: Undefined offset: 4 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 281
Notice: Undefined offset: 2 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283
Notice: Undefined offset: 3 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283
Notice: Undefined offset: 5 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284
Notice: Undefined offset: 6 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284
Notice: Undefined offset: 5 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 281
Notice: Undefined offset: 2 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283
Notice: Undefined offset: 3 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283
Notice: Undefined offset: 5 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284
Notice: Undefined offset: 6 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284
Warning: Division by zero in D:\xampp\htdocs\jyotish\src\Panchanga\AngaDefiner.php on line 267
Hi,
Could you help me by giving me a small documentation on how to calculate nakshatra, please. I'd really like to use this library in a current project now.
Hope to hear from you.
How to access public functions like getRahuKala() . It might be obvious for you guys but I'm new to PHP
Hello!
I need build the project, i can't install the php's and run the project.
Can help me please?
I can't even start using it.
It's getting interesting
You can mouse over graha in D1
https://nits.tiiny.site/
Only desktop friendly
pleas help me to use your codes
Hi,
Please let me know how to List down nakshatra of the graha in charts along with name, longitude & house details
Raja Yoga Calculations
it will be good if you can have something like below can be generated from this easily ?
Raj Yogas
Raj Yoga found as 7th (Kendra) House Lord Moon and 5th (Kone) lord Venus in 11th house Scorpio (Brischik)
Raj Yoga found as 7th (Kendra) House Lord Moon and 1st (Kone) lord Saturn in 11th house Scorpio (Brischik)
Raj Yoga found as 4th (Kendra) House Lord Mars and 5th (Kone) lord Venus in is house exchange
Exchange House Raj Yoga : Lord of Scorpio (Brischik) Mars in Libra (Tula) and Lord of Libra (Tula) Venus in Scorpio (Brischik)
Raj Yoga found as 10th (Kendra) House Lord Venus and 1st (Kone) lord Saturn in 11th house Scorpio (Brischik)
Raj Yoga found as 1st (Kendra) House Lord Saturn and 5th (Kone) lord Venus in 11th house Scorpio (Brischik)
Exchange House Raj Yoga : Lord of Sagittarius (Dhanu) Jupiter in Leo (Simha) and Lord of Leo (Simha) Sun in Sagittarius (Dhanu)Anapha Yogas
Anpha Yoga Present as Mars, present on 12 House (Libra (Tula)) of Moon. The person born in this Yoga will be Well-formed organs, majestic appearance, good reputation, polite, generous, self-respect, fond of dress and sense Pleasures. In the later life, renunciation and austerity.Mars in this position makes the person powerful, self-controlled and a leader of persons engaged in undesirable activities.
Ubhayachari Yogas
Ubhayachari Yoga Present as Mercury, present on 2nd House (Capricorn (Makara)) of Sun and Venus, Saturn, present on 12th House (Scorpio (Brischik)) of Sun. The person born in this Yoga will be is sweet tongued, extremely famous, scheming and extremely wealthy
Vasi Yogas
Vasi Yoga Present as Venus, Saturn, present on 12th House (Scorpio (Brischik)) of Sun. The person born in this Yoga will be will be happy, prosperous, liberal and the favourite of the ruling classes.
Vesi Yogas
Vesi Yoga Present as Mercury, present on 2nd House (Capricorn (Makara)) of Sun. The person born in this Yoga will be will be will be fortunate,happy, virtuous, famous and aristocratic.
Amala Yogas
Amala Yoga Present as Jupiter is in 10th Position from Moon in Leo (Simha), Person born in this yoga will be philanthropic and benevolent attitude towards mankind, may have career in the social sector
does any one have API ready of this library , i want to buy and customise
please help
Hi,
I am able to get Panchanga details with your library but also need masa, ritu, ayana, varsha. Please help.
`$Locality = new Locality([
'longitude' => "11.09",
'latitude' => "79.6",
'altitude' => 0,
]);
$DateTime = new DateTime();
$DateTime->setTimezone(new DateTimeZone('Europe/Istanbul'));
$DateTime->setDate(1999,4,3);
$DateTime->setTime(5,45);
$Ganita = new Swetest(["swetest" => $_SERVER["DOCUMENT_ROOT"]."/../vendor/kunjara/swetest/win/"]);
$data = new Data($DateTime, $Locality,$Ganita);
$data->calcParams();`
the last line works externally. I get the error Undefined array key "graha" in the last line.
vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php : 251
$longitudeKe = Math::oppositeValue($dataParams['graha'][Graha::KEY_RA]['longitude'], 360);
Can you help me convert this into a webhook or an API?
i am not able to understand how to run jeson and set index.php please guide me step by step so i can install in my wamp server
How to use this library ??
When we access demo website https://abboom.com to see this repository demo. It asks username and password to enter and display demo website. Please share username and password Or remove this restriction so that we can see demo of this application. Thanks a lot. Look forward to hear you.
Is it possible to run it on linux shared host.
There's some minor updates required to the library to make it work with 7.4. Will you be releasing an update soon?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.