repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/x0f.php | app/code/community/Catalin/SEO/Helper/data/x0f.php | <?php
$UTF8_TO_ASCII[0x0f] = array(
'[?]','k','kh','kh','kh','kh','kh','ng','cch','ch','ch','ch','ch','y','d','t','th','th','th','n','d','t','th','th','th','n','b','p','ph','f','ph','f','ph','m','y','r','R','l','L','w','s','s','s','h','l','`','h','~','a','a','aa','am','i','ii','ue','uue','u','uu',"'",'[?]','[?]','[?]','[?]','Bh.','e','ae','o','ai','ai','ao','+','','','','','','','M','',' * ','0','1','2','3','4','5','6','7','8','9',' // ',' /// ','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','k','kh','[?]','kh','[?]','[?]','ng','ch','[?]','s','[?]','[?]','ny','[?]','[?]','[?]','[?]','[?]','[?]','d','h','th','th','[?]','n','b','p','ph','f','ph','f','[?]','m','y','r','[?]','l','[?]','w','[?]','[?]','s','h','[?]','`','','~','a','','aa','am','i','ii','y','yy','u','uu','[?]','o','l','ny','[?]','[?]','e','ei','o','ay','ai','[?]','+','[?]','','','','','','M','[?]','[?]','0','1','2','3','4','5','6','7','8','9','[?]','[?]','hn','hm','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/xd4.php | app/code/community/Catalin/SEO/Helper/data/xd4.php | <?php
$UTF8_TO_ASCII[0xd4] = array(
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/x7e.php | app/code/community/Catalin/SEO/Helper/data/x7e.php | <?php
$UTF8_TO_ASCII[0x7e] = array(
'Song ','Wei ','Hong ','Wa ','Lou ','Ya ','Rao ','Jiao ','Luan ','Ping ','Xian ','Shao ','Li ','Cheng ','Xiao ','Mang ','Fu ','Suo ','Wu ','Wei ','Ke ','Lai ','Chuo ','Ding ','Niang ','Xing ','Nan ','Yu ','Nuo ','Pei ','Nei ','Juan ','Shen ','Zhi ','Han ','Di ','Zhuang ','E ','Pin ','Tui ','Han ','Mian ','Wu ','Yan ','Wu ','Xi ','Yan ','Yu ','Si ','Yu ','Wa ','[?] ','Xian ','Ju ','Qu ','Shui ','Qi ','Xian ','Zhui ','Dong ','Chang ','Lu ','Ai ','E ','E ','Lou ','Mian ','Cong ','Pou ','Ju ','Po ','Cai ','Ding ','Wan ','Biao ','Xiao ','Shu ','Qi ','Hui ','Fu ','E ','Wo ','Tan ','Fei ','Wei ','Jie ','Tian ','Ni ','Quan ','Jing ','Hun ','Jing ','Qian ','Dian ','Xing ','Hu ','Wa ','Lai ','Bi ','Yin ','Chou ','Chuo ','Fu ','Jing ','Lun ','Yan ','Lan ','Kun ','Yin ','Ya ','Ju ','Li ','Dian ','Xian ','Hwa ','Hua ','Ying ','Chan ','Shen ','Ting ','Dang ','Yao ','Wu ','Nan ','Ruo ','Jia ','Tou ','Xu ','Yu ','Wei ','Ti ','Rou ','Mei ','Dan ','Ruan ','Qin ','Hui ','Wu ','Qian ','Chun ','Mao ','Fu ','Jie ','Duan ','Xi ','Zhong ','Mei ','Huang ','Mian ','An ','Ying ','Xuan ','Jie ','Wei ','Mei ','Yuan ','Zhen ','Qiu ','Ti ','Xie ','Tuo ','Lian ','Mao ','Ran ','Si ','Pian ','Wei ','Wa ','Jiu ','Hu ','Ao ','[?] ','Bou ','Xu ','Tou ','Gui ','Zou ','Yao ','Pi ','Xi ','Yuan ','Ying ','Rong ','Ru ','Chi ','Liu ','Mei ','Pan ','Ao ','Ma ','Gou ','Kui ','Qin ','Jia ','Sao ','Zhen ','Yuan ','Cha ','Yong ','Ming ','Ying ','Ji ','Su ','Niao ','Xian ','Tao ','Pang ','Lang ','Nao ','Bao ','Ai ','Pi ','Pin ','Yi ','Piao ','Yu ','Lei ','Xuan ','Man ','Yi ','Zhang ','Kang ','Yong ','Ni ','Li ','Di ','Gui ','Yan ','Jin ','Zhuan ','Chang ','Ce ','Han ','Nen ','Lao ','Mo ','Zhe ','Hu ','Hu ','Ao ','Nen ','Qiang ','Ma ','Pie ','Gu ','Wu ','Jiao ','Tuo ','Zhan ','Mao ','Xian ','Xian ','Mo ','Liao ','Lian ','Hua ',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/xfd.php | app/code/community/Catalin/SEO/Helper/data/xfd.php | <?php
$UTF8_TO_ASCII[0xfd] = array(
'nyaess','nyaeng','nyaej','nyaec','nyaek','nyaet','nyaep','nyaeh','neo','neog','neogg','neogs','neon','neonj','neonh','neod','neol','neolg','neolm','neolb','neols','neolt','neolp','neolh','neom','neob','neobs','neos','neoss','neong','neoj','neoc','neok','neot','neop','neoh','ne','neg','negg','negs','nen','nenj','nenh','ned','nel','nelg','nelm','nelb','nels','nelt','nelp','nelh','nem','neb','nebs','nes','ness','neng','nej','nec','nek','net','nep','neh','nyeo','nyeog','nyeogg','nyeogs','nyeon','nyeonj','nyeonh','nyeod','nyeol','nyeolg','nyeolm','nyeolb','nyeols','nyeolt','nyeolp','nyeolh','nyeom','nyeob','nyeobs','nyeos','nyeoss','nyeong','nyeoj','nyeoc','nyeok','nyeot','nyeop','nyeoh','nye','nyeg','nyegg','nyegs','nyen','nyenj','nyenh','nyed','nyel','nyelg','nyelm','nyelb','nyels','nyelt','nyelp','nyelh','nyem','nyeb','nyebs','nyes','nyess','nyeng','nyej','nyec','nyek','nyet','nyep','nyeh','no','nog','nogg','nogs','non','nonj','nonh','nod','nol','nolg','nolm','nolb','nols','nolt','nolp','nolh','nom','nob','nobs','nos','noss','nong','noj','noc','nok','not','nop','noh','nwa','nwag','nwagg','nwags','nwan','nwanj','nwanh','nwad','nwal','nwalg','nwalm','nwalb','nwals','nwalt','nwalp','nwalh','nwam','nwab','nwabs','nwas','nwass','nwang','nwaj','nwac','nwak','nwat','nwap','nwah','nwae','nwaeg','nwaegg','nwaegs','nwaen','nwaenj','nwaenh','nwaed','nwael','nwaelg','nwaelm','nwaelb','nwaels','nwaelt','nwaelp','nwaelh','nwaem','nwaeb','nwaebs','nwaes','nwaess','nwaeng','nwaej','nwaec','nwaek','nwaet','nwaep','nwaeh','noe','noeg','noegg','noegs','noen','noenj','noenh','noed','noel','noelg','noelm','noelb','noels','noelt','noelp','noelh','noem','noeb','noebs','noes','noess','noeng','noej','noec','noek','noet','noep','noeh','nyo','nyog','nyogg','nyogs','nyon','nyonj','nyonh','nyod','nyol','nyolg','nyolm','nyolb','nyols','nyolt','nyolp','nyolh','nyom','nyob','nyobs','nyos','nyoss','nyong','nyoj','nyoc',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/xd2.php | app/code/community/Catalin/SEO/Helper/data/xd2.php | <?php
$UTF8_TO_ASCII[0xd2] = array(
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/x03.php | app/code/community/Catalin/SEO/Helper/data/x03.php | <?php
$UTF8_TO_ASCII[0x03] = array(
'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','','','','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]',"'",',','[?]','[?]','[?]','[?]','','[?]','[?]','[?]','?','[?]','[?]','[?]','[?]','[?]','','','A',';','E','E','I','[?]','O','[?]','U','O','I','A','B','G','D','E','Z','E','Th','I','K','L','M','N','Ks','O','P','R','[?]','S','T','U','Ph','Kh','Ps','O','I','U','a','e','e','i','u','a','b','g','d','e','z','e','th','i','k','l','m','n','x','o','p','r','s','s','t','u','ph','kh','ps','o','i','u','o','u','o','[?]','b','th','U','U','U','ph','p','&','[?]','[?]','St','st','W','w','Q','q','Sp','sp','Sh','sh','F','f','Kh','kh','H','h','G','g','CH','ch','Ti','ti','k','r','c','j','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/xb7.php | app/code/community/Catalin/SEO/Helper/data/xb7.php | <?php
$UTF8_TO_ASCII[0xb7] = array(
'Yu ','Shui ','Shen ','Diao ','Chan ','Liang ','Zhun ','Sui ','Tan ','Shen ','Yi ','Mou ','Chen ','Die ','Huang ','Jian ','Xie ','Nue ','Ye ','Wei ','E ','Yu ','Xuan ','Chan ','Zi ','An ','Yan ','Di ','Mi ','Pian ','Xu ','Mo ','Dang ','Su ','Xie ','Yao ','Bang ','Shi ','Qian ','Mi ','Jin ','Man ','Zhe ','Jian ','Miu ','Tan ','Zen ','Qiao ','Lan ','Pu ','Jue ','Yan ','Qian ','Zhan ','Chen ','Gu ','Qian ','Hong ','Xia ','Jue ','Hong ','Han ','Hong ','Xi ','Xi ','Huo ','Liao ','Han ','Du ','Long ','Dou ','Jiang ','Qi ','Shi ','Li ','Deng ','Wan ','Bi ','Shu ','Xian ','Feng ','Zhi ','Zhi ','Yan ','Yan ','Shi ','Chu ','Hui ','Tun ','Yi ','Tun ','Yi ','Jian ','Ba ','Hou ','E ','Cu ','Xiang ','Huan ','Jian ','Ken ','Gai ','Qu ','Fu ','Xi ','Bin ','Hao ','Yu ','Zhu ','Jia ','[?] ','Xi ','Bo ','Wen ','Huan ','Bin ','Di ','Zong ','Fen ','Yi ','Zhi ','Bao ','Chai ','Han ','Pi ','Na ','Pi ','Gou ','Na ','You ','Diao ','Mo ','Si ','Xiu ','Huan ','Kun ','He ','He ','Mo ','Han ','Mao ','Li ','Ni ','Bi ','Yu ','Jia ','Tuan ','Mao ','Pi ','Xi ','E ','Ju ','Mo ','Chu ','Tan ','Huan ','Jue ','Bei ','Zhen ','Yuan ','Fu ','Cai ','Gong ','Te ','Yi ','Hang ','Wan ','Pin ','Huo ','Fan ','Tan ','Guan ','Ze ','Zhi ','Er ','Zhu ','Shi ','Bi ','Zi ','Er ','Gui ','Pian ','Bian ','Mai ','Dai ','Sheng ','Kuang ','Fei ','Tie ','Yi ','Chi ','Mao ','He ','Bi ','Lu ','Ren ','Hui ','Gai ','Pian ','Zi ','Jia ','Xu ','Zei ','Jiao ','Gai ','Zang ','Jian ','Ying ','Xun ','Zhen ','She ','Bin ','Bin ','Qiu ','She ','Chuan ','Zang ','Zhou ','Lai ','Zan ','Si ','Chen ','Shang ','Tian ','Pei ','Geng ','Xian ','Mai ','Jian ','Sui ','Fu ','Tan ','Cong ','Cong ','Zhi ','Ji ','Zhang ','Du ','Jin ','Xiong ','Shun ','Yun ','Bao ','Zai ','Lai ','Feng ','Cang ','Ji ','Sheng ','Ai ','Zhuan ','Fu ','Gou ','Sai ','Ze ','Liao ',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/x2e.php | app/code/community/Catalin/SEO/Helper/data/x2e.php | <?php
$UTF8_TO_ASCII[0x2e] = array(
'[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/xa3.php | app/code/community/Catalin/SEO/Helper/data/xa3.php | <?php
$UTF8_TO_ASCII[0xa3] = array(
'Zhui ','Zi ','Ke ','Xiang ','Jian ','Mian ','Lan ','Ti ','Miao ','Qi ','Yun ','Hui ','Si ','Duo ','Duan ','Bian ','Xian ','Gou ','Zhui ','Huan ','Di ','Lu ','Bian ','Min ','Yuan ','Jin ','Fu ','Ru ','Zhen ','Feng ','Shuai ','Gao ','Chan ','Li ','Yi ','Jian ','Bin ','Piao ','Man ','Lei ','Ying ','Suo ','Mou ','Sao ','Xie ','Liao ','Shan ','Zeng ','Jiang ','Qian ','Zao ','Huan ','Jiao ','Zuan ','Fou ','Xie ','Gang ','Fou ','Que ','Fou ','Kaakeru ','Bo ','Ping ','Hou ','[?] ','Gang ','Ying ','Ying ','Qing ','Xia ','Guan ','Zun ','Tan ','Chang ','Qi ','Weng ','Ying ','Lei ','Tan ','Lu ','Guan ','Wang ','Wang ','Gang ','Wang ','Han ','[?] ','Luo ','Fu ','Mi ','Fa ','Gu ','Zhu ','Ju ','Mao ','Gu ','Min ','Gang ','Ba ','Gua ','Ti ','Juan ','Fu ','Lin ','Yan ','Zhao ','Zui ','Gua ','Zhuo ','Yu ','Zhi ','An ','Fa ','Nan ','Shu ','Si ','Pi ','Ma ','Liu ','Ba ','Fa ','Li ','Chao ','Wei ','Bi ','Ji ','Zeng ','Tong ','Liu ','Ji ','Juan ','Mi ','Zhao ','Luo ','Pi ','Ji ','Ji ','Luan ','Yang ','Mie ','Qiang ','Ta ','Mei ','Yang ','You ','You ','Fen ','Ba ','Gao ','Yang ','Gu ','Qiang ','Zang ','Gao ','Ling ','Yi ','Zhu ','Di ','Xiu ','Qian ','Yi ','Xian ','Rong ','Qun ','Qun ','Qian ','Huan ','Zui ','Xian ','Yi ','Yashinau ','Qiang ','Xian ','Yu ','Geng ','Jie ','Tang ','Yuan ','Xi ','Fan ','Shan ','Fen ','Shan ','Lian ','Lei ','Geng ','Nou ','Qiang ','Chan ','Yu ','Gong ','Yi ','Chong ','Weng ','Fen ','Hong ','Chi ','Chi ','Cui ','Fu ','Xia ','Pen ','Yi ','La ','Yi ','Pi ','Ling ','Liu ','Zhi ','Qu ','Xi ','Xie ','Xiang ','Xi ','Xi ','Qi ','Qiao ','Hui ','Hui ','Xiao ','Se ','Hong ','Jiang ','Di ','Cui ','Fei ','Tao ','Sha ','Chi ','Zhu ','Jian ','Xuan ','Shi ','Pian ','Zong ','Wan ','Hui ','Hou ','He ','He ','Han ','Ao ','Piao ','Yi ','Lian ','Qu ','[?] ','Lin ','Pen ','Qiao ','Ao ','Fan ','Yi ','Hui ','Xuan ','Dao ',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/x06.php | app/code/community/Catalin/SEO/Helper/data/x06.php | <?php
$UTF8_TO_ASCII[0x06] = array(
'[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]',',','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]',';','[?]','[?]','[?]','?','[?]','','a',"'","w'",'',"y'",'','b','@','t','th','j','H','kh','d','dh','r','z','s','sh','S','D','T','Z','`','G','[?]','[?]','[?]','[?]','[?]','','f','q','k','l','m','n','h','w','~','y','an','un','in','a','u','i','W','','',"'","'",'[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','0','1','2','3','4','5','6','7','8','9','%','.',',','*','[?]','[?]','',"'","'","'",'',"'","'w","'u","'y",'tt','tth','b','t','T','p','th','bh',"'h",'H','ny','dy','H','ch','cch','dd','D','D','Dt','dh','ddh','d','D','D','rr','R','R','R','R','R','R','j','R','S','S','S','S','S','T','GH','F','F','F','v','f','ph','Q','Q','kh','k','K','K','ng','K','g','G','N','G','G','G','L','L','L','L','N','N','N','N','N','h','Ch','hy','h','H','@','W','oe','oe','u','yu','yu','W','v','y','Y','Y','W','','','y',"y'",'.','ae','','','','','','','','@','#','','','','','','','','','','','^','','','','','[?]','[?]','0','1','2','3','4','5','6','7','8','9','Sh','D','Gh','&','+m',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/xa2.php | app/code/community/Catalin/SEO/Helper/data/xa2.php | <?php
$UTF8_TO_ASCII[0xa2] = array(
'Xia ','Yuan ','Zong ','Xu ','Nawa ','Odoshi ','Geng ','Sen ','Ying ','Jin ','Yi ','Zhui ','Ni ','Bang ','Gu ','Pan ','Zhou ','Jian ','Cuo ','Quan ','Shuang ','Yun ','Xia ','Shuai ','Xi ','Rong ','Tao ','Fu ','Yun ','Zhen ','Gao ','Ru ','Hu ','Zai ','Teng ','Xian ','Su ','Zhen ','Zong ','Tao ','Horo ','Cai ','Bi ','Feng ','Cu ','Li ','Suo ','Yin ','Xi ','Zong ','Lei ','Zhuan ','Qian ','Man ','Zhi ','Lu ','Mo ','Piao ','Lian ','Mi ','Xuan ','Zong ','Ji ','Shan ','Sui ','Fan ','Shuai ','Beng ','Yi ','Sao ','Mou ','Zhou ','Qiang ','Hun ','Sem ','Xi ','Jung ','Xiu ','Ran ','Xuan ','Hui ','Qiao ','Zeng ','Zuo ','Zhi ','Shan ','San ','Lin ','Yu ','Fan ','Liao ','Chuo ','Zun ','Jian ','Rao ','Chan ','Rui ','Xiu ','Hui ','Hua ','Zuan ','Xi ','Qiang ','Un ','Da ','Sheng ','Hui ','Xi ','Se ','Jian ','Jiang ','Huan ','Zao ','Cong ','Jie ','Jiao ','Bo ','Chan ','Yi ','Nao ','Sui ','Yi ','Shai ','Xu ','Ji ','Bin ','Qian ','Lan ','Pu ','Xun ','Zuan ','Qi ','Peng ','Li ','Mo ','Lei ','Xie ','Zuan ','Kuang ','You ','Xu ','Lei ','Xian ','Chan ','Kou ','Lu ','Chan ','Ying ','Cai ','Xiang ','Xian ','Zui ','Zuan ','Luo ','Xi ','Dao ','Lan ','Lei ','Lian ','Si ','Jiu ','Yu ','Hong ','Zhou ','Xian ','He ','Yue ','Ji ','Wan ','Kuang ','Ji ','Ren ','Wei ','Yun ','Hong ','Chun ','Pi ','Sha ','Gang ','Na ','Ren ','Zong ','Lun ','Fen ','Zhi ','Wen ','Fang ','Zhu ','Yin ','Niu ','Shu ','Xian ','Gan ','Xie ','Fu ','Lian ','Zu ','Shen ','Xi ','Zhi ','Zhong ','Zhou ','Ban ','Fu ','Zhuo ','Shao ','Yi ','Jing ','Dai ','Bang ','Rong ','Jie ','Ku ','Rao ','Die ','Heng ','Hui ','Gei ','Xuan ','Jiang ','Luo ','Jue ','Jiao ','Tong ','Geng ','Xiao ','Juan ','Xiu ','Xi ','Sui ','Tao ','Ji ','Ti ','Ji ','Xu ','Ling ','[?] ','Xu ','Qi ','Fei ','Chuo ','Zhang ','Gun ','Sheng ','Wei ','Mian ','Shou ','Beng ','Chou ','Tao ','Liu ','Quan ','Zong ','Zhan ','Wan ','Lu ',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/x0c.php | app/code/community/Catalin/SEO/Helper/data/x0c.php | <?php
$UTF8_TO_ASCII[0x0c] = array(
'[?]','N','N','H','[?]','a','aa','i','ii','u','uu','R','L','[?]','[?]','e','ai','[?]','[?]','o','au','k','kh','g','gh','ng','c','ch','j','jh','ny','tt','tth','dd','ddh','nn','t','th','d','dh','n','[?]','p','ph','b','bh','m','y','r','[?]','l','ll','[?]','','sh','ss','s','h','[?]','[?]',"'","'",'aa','i','ii','u','uu','R','[?]','[?]','[?]','e','ai','[?]','[?]','o','au','','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','+','+','[?]','[?]','[?]','[?]','rr','rh','[?]','yy','RR','LL','[?]','[?]','[?]','[?]','0','1','2','3','4','5','6','7','8','9','','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','N','H','[?]','a','aa','i','ii','u','uu','[?]','[?]','[?]','e','ee','ai','[?]','o','oo','au','k','[?]','[?]','[?]','ng','c','[?]','j','[?]','ny','tt','[?]','[?]','[?]','nn','t','[?]','[?]','[?]','n','nnn','p','[?]','[?]','[?]','m','y','r','rr','l','ll','lll','v','[?]','ss','s','h','[?]','[?]','[?]','[?]','aa','i','ii','u','uu','[?]','[?]','[?]','e','ee','ai','[?]','o','oo','au','','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','+','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','0','1','2','3','4','5','6','7','8','9','+10+','+100+','+1000+','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]','[?]',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/x91.php | app/code/community/Catalin/SEO/Helper/data/x91.php | <?php
$UTF8_TO_ASCII[0x91] = array(
'Zhou ','Ji ','Yi ','Hui ','Hui ','Zui ','Cheng ','Yin ','Wei ','Hou ','Jian ','Yang ','Lie ','Si ','Ji ','Er ','Xing ','Fu ','Sa ','Suo ','Zhi ','Yin ','Wu ','Xi ','Kao ','Zhu ','Jiang ','Luo ','[?] ','An ','Dong ','Yi ','Mou ','Lei ','Yi ','Mi ','Quan ','Jin ','Mo ','Wei ','Xiao ','Xie ','Hong ','Xu ','Shuo ','Kuang ','Tao ','Qie ','Ju ','Er ','Zhou ','Ru ','Ping ','Xun ','Xiong ','Zhi ','Guang ','Huan ','Ming ','Huo ','Wa ','Qia ','Pai ','Wu ','Qu ','Liu ','Yi ','Jia ','Jing ','Qian ','Jiang ','Jiao ','Cheng ','Shi ','Zhuo ','Ce ','Pal ','Kuai ','Ji ','Liu ','Chan ','Hun ','Hu ','Nong ','Xun ','Jin ','Lie ','Qiu ','Wei ','Zhe ','Jun ','Han ','Bang ','Mang ','Zhuo ','You ','Xi ','Bo ','Dou ','Wan ','Hong ','Yi ','Pu ','Ying ','Lan ','Hao ','Lang ','Han ','Li ','Geng ','Fu ','Wu ','Lian ','Chun ','Feng ','Yi ','Yu ','Tong ','Lao ','Hai ','Jin ','Jia ','Chong ','Weng ','Mei ','Sui ','Cheng ','Pei ','Xian ','Shen ','Tu ','Kun ','Pin ','Nie ','Han ','Jing ','Xiao ','She ','Nian ','Tu ','Yong ','Xiao ','Xian ','Ting ','E ','Su ','Tun ','Juan ','Cen ','Ti ','Li ','Shui ','Si ','Lei ','Shui ','Tao ','Du ','Lao ','Lai ','Lian ','Wei ','Wo ','Yun ','Huan ','Di ','[?] ','Run ','Jian ','Zhang ','Se ','Fu ','Guan ','Xing ','Shou ','Shuan ','Ya ','Chuo ','Zhang ','Ye ','Kong ','Wo ','Han ','Tuo ','Dong ','He ','Wo ','Ju ','Gan ','Liang ','Hun ','Ta ','Zhuo ','Dian ','Qie ','De ','Juan ','Zi ','Xi ','Yao ','Qi ','Gu ','Guo ','Han ','Lin ','Tang ','Zhou ','Peng ','Hao ','Chang ','Shu ','Qi ','Fang ','Chi ','Lu ','Nao ','Ju ','Tao ','Cong ','Lei ','Zhi ','Peng ','Fei ','Song ','Tian ','Pi ','Dan ','Yu ','Ni ','Yu ','Lu ','Gan ','Mi ','Jing ','Ling ','Lun ','Yin ','Cui ','Qu ','Huai ','Yu ','Nian ','Shen ','Piao ','Chun ','Wa ','Yuan ','Lai ','Hun ','Qing ','Yan ','Qian ','Tian ','Miao ','Zhi ','Yin ','Mi ',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/xc5.php | app/code/community/Catalin/SEO/Helper/data/xc5.php | <?php
$UTF8_TO_ASCII[0xc5] = array(
'E ','Cheng ','Xin ','Ai ','Lu ','Zhui ','Zhou ','She ','Pian ','Kun ','Tao ','Lai ','Zong ','Ke ','Qi ','Qi ','Yan ','Fei ','Sao ','Yan ','Jie ','Yao ','Wu ','Pian ','Cong ','Pian ','Qian ','Fei ','Huang ','Jian ','Huo ','Yu ','Ti ','Quan ','Xia ','Zong ','Kui ','Rou ','Si ','Gua ','Tuo ','Kui ','Sou ','Qian ','Cheng ','Zhi ','Liu ','Pang ','Teng ','Xi ','Cao ','Du ','Yan ','Yuan ','Zou ','Sao ','Shan ','Li ','Zhi ','Shuang ','Lu ','Xi ','Luo ','Zhang ','Mo ','Ao ','Can ','Piao ','Cong ','Qu ','Bi ','Zhi ','Yu ','Xu ','Hua ','Bo ','Su ','Xiao ','Lin ','Chan ','Dun ','Liu ','Tuo ','Zeng ','Tan ','Jiao ','Tie ','Yan ','Luo ','Zhan ','Jing ','Yi ','Ye ','Tuo ','Bin ','Zou ','Yan ','Peng ','Lu ','Teng ','Xiang ','Ji ','Shuang ','Ju ','Xi ','Huan ','Li ','Biao ','Ma ','Yu ','Tuo ','Xun ','Chi ','Qu ','Ri ','Bo ','Lu ','Zang ','Shi ','Si ','Fu ','Ju ','Zou ','Zhu ','Tuo ','Nu ','Jia ','Yi ','Tai ','Xiao ','Ma ','Yin ','Jiao ','Hua ','Luo ','Hai ','Pian ','Biao ','Li ','Cheng ','Yan ','Xin ','Qin ','Jun ','Qi ','Qi ','Ke ','Zhui ','Zong ','Su ','Can ','Pian ','Zhi ','Kui ','Sao ','Wu ','Ao ','Liu ','Qian ','Shan ','Piao ','Luo ','Cong ','Chan ','Zou ','Ji ','Shuang ','Xiang ','Gu ','Wei ','Wei ','Wei ','Yu ','Gan ','Yi ','Ang ','Tou ','Xie ','Bao ','Bi ','Chi ','Ti ','Di ','Ku ','Hai ','Qiao ','Gou ','Kua ','Ge ','Tui ','Geng ','Pian ','Bi ','Ke ','Ka ','Yu ','Sui ','Lou ','Bo ','Xiao ','Pang ','Bo ','Ci ','Kuan ','Bin ','Mo ','Liao ','Lou ','Nao ','Du ','Zang ','Sui ','Ti ','Bin ','Kuan ','Lu ','Gao ','Gao ','Qiao ','Kao ','Qiao ','Lao ','Zao ','Biao ','Kun ','Kun ','Ti ','Fang ','Xiu ','Ran ','Mao ','Dan ','Kun ','Bin ','Fa ','Tiao ','Peng ','Zi ','Fa ','Ran ','Ti ','Pao ','Pi ','Mao ','Fu ','Er ','Rong ','Qu ','Gong ','Xiu ','Gua ','Ji ','Peng ','Zhua ','Shao ','Sha ',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/xd1.php | app/code/community/Catalin/SEO/Helper/data/xd1.php | <?php
$UTF8_TO_ASCII[0xd1] = array(
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/xfe.php | app/code/community/Catalin/SEO/Helper/data/xfe.php | <?php
$UTF8_TO_ASCII[0xfe] = array(
'nyok','nyot','nyop','nyoh','nu','nug','nugg','nugs','nun','nunj','nunh','nud','nul','nulg','nulm','nulb','nuls','nult','nulp','nulh','num','nub','nubs','nus','nuss','nung','nuj','nuc','nuk','nut','nup','nuh','nweo','nweog','nweogg','nweogs','nweon','nweonj','nweonh','nweod','nweol','nweolg','nweolm','nweolb','nweols','nweolt','nweolp','nweolh','nweom','nweob','nweobs','nweos','nweoss','nweong','nweoj','nweoc','nweok','nweot','nweop','nweoh','nwe','nweg','nwegg','nwegs','nwen','nwenj','nwenh','nwed','nwel','nwelg','nwelm','nwelb','nwels','nwelt','nwelp','nwelh','nwem','nweb','nwebs','nwes','nwess','nweng','nwej','nwec','nwek','nwet','nwep','nweh','nwi','nwig','nwigg','nwigs','nwin','nwinj','nwinh','nwid','nwil','nwilg','nwilm','nwilb','nwils','nwilt','nwilp','nwilh','nwim','nwib','nwibs','nwis','nwiss','nwing','nwij','nwic','nwik','nwit','nwip','nwih','nyu','nyug','nyugg','nyugs','nyun','nyunj','nyunh','nyud','nyul','nyulg','nyulm','nyulb','nyuls','nyult','nyulp','nyulh','nyum','nyub','nyubs','nyus','nyuss','nyung','nyuj','nyuc','nyuk','nyut','nyup','nyuh','neu','neug','neugg','neugs','neun','neunj','neunh','neud','neul','neulg','neulm','neulb','neuls','neult','neulp','neulh','neum','neub','neubs','neus','neuss','neung','neuj','neuc','neuk','neut','neup','neuh','nyi','nyig','nyigg','nyigs','nyin','nyinj','nyinh','nyid','nyil','nyilg','nyilm','nyilb','nyils','nyilt','nyilp','nyilh','nyim','nyib','nyibs','nyis','nyiss','nying','nyij','nyic','nyik','nyit','nyip','nyih','ni','nig','nigg','nigs','nin','ninj','ninh','nid','nil','nilg','nilm','nilb','nils','nilt','nilp','nilh','nim','nib','nibs','nis','niss','ning','nij','nic','nik','nit','nip','nih','da','dag','dagg','dags','dan','danj','danh','dad','dal','dalg','dalm','dalb','dals','dalt','dalp','dalh','dam','dab','dabs','das','dass','dang','daj','dac','dak','dat','dap','dah',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/x97.php | app/code/community/Catalin/SEO/Helper/data/x97.php | <?php
$UTF8_TO_ASCII[0x97] = array(
'Sha ','Li ','Han ','Xian ','Jing ','Pai ','Fei ','Yao ','Ba ','Qi ','Ni ','Biao ','Yin ','Lai ','Xi ','Jian ','Qiang ','Kun ','Yan ','Guo ','Zong ','Mi ','Chang ','Yi ','Zhi ','Zheng ','Ya ','Meng ','Cai ','Cu ','She ','Kari ','Cen ','Luo ','Hu ','Zong ','Ji ','Wei ','Feng ','Wo ','Yuan ','Xing ','Zhu ','Mao ','Wei ','Yuan ','Xian ','Tuan ','Ya ','Nao ','Xie ','Jia ','Hou ','Bian ','You ','You ','Mei ','Zha ','Yao ','Sun ','Bo ','Ming ','Hua ','Yuan ','Sou ','Ma ','Yuan ','Dai ','Yu ','Shi ','Hao ','[?] ','Yi ','Zhen ','Chuang ','Hao ','Man ','Jing ','Jiang ','Mu ','Zhang ','Chan ','Ao ','Ao ','Hao ','Cui ','Fen ','Jue ','Bi ','Bi ','Huang ','Pu ','Lin ','Yu ','Tong ','Yao ','Liao ','Shuo ','Xiao ','Swu ','Ton ','Xi ','Ge ','Juan ','Du ','Hui ','Kuai ','Xian ','Xie ','Ta ','Xian ','Xun ','Ning ','Pin ','Huo ','Nou ','Meng ','Lie ','Nao ','Guang ','Shou ','Lu ','Ta ','Xian ','Mi ','Rang ','Huan ','Nao ','Luo ','Xian ','Qi ','Jue ','Xuan ','Miao ','Zi ','Lu ','Lu ','Yu ','Su ','Wang ','Qiu ','Ga ','Ding ','Le ','Ba ','Ji ','Hong ','Di ','Quan ','Gan ','Jiu ','Yu ','Ji ','Yu ','Yang ','Ma ','Gong ','Wu ','Fu ','Wen ','Jie ','Ya ','Fen ','Bian ','Beng ','Yue ','Jue ','Yun ','Jue ','Wan ','Jian ','Mei ','Dan ','Pi ','Wei ','Huan ','Xian ','Qiang ','Ling ','Dai ','Yi ','An ','Ping ','Dian ','Fu ','Xuan ','Xi ','Bo ','Ci ','Gou ','Jia ','Shao ','Po ','Ci ','Ke ','Ran ','Sheng ','Shen ','Yi ','Zu ','Jia ','Min ','Shan ','Liu ','Bi ','Zhen ','Zhen ','Jue ','Fa ','Long ','Jin ','Jiao ','Jian ','Li ','Guang ','Xian ','Zhou ','Gong ','Yan ','Xiu ','Yang ','Xu ','Luo ','Su ','Zhu ','Qin ','Ken ','Xun ','Bao ','Er ','Xiang ','Yao ','Xia ','Heng ','Gui ','Chong ','Xu ','Ban ','Pei ','[?] ','Dang ','Ei ','Hun ','Wen ','E ','Cheng ','Ti ','Wu ','Wu ','Cheng ','Jun ','Mei ','Bei ','Ting ','Xian ','Chuo ',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/x84.php | app/code/community/Catalin/SEO/Helper/data/x84.php | <?php
$UTF8_TO_ASCII[0x84] = array(
'Huai ','Tai ','Song ','Wu ','Ou ','Chang ','Chuang ','Ju ','Yi ','Bao ','Chao ','Min ','Pei ','Zuo ','Zen ','Yang ','Kou ','Ban ','Nu ','Nao ','Zheng ','Pa ','Bu ','Tie ','Gu ','Hu ','Ju ','Da ','Lian ','Si ','Chou ','Di ','Dai ','Yi ','Tu ','You ','Fu ','Ji ','Peng ','Xing ','Yuan ','Ni ','Guai ','Fu ','Xi ','Bi ','You ','Qie ','Xuan ','Cong ','Bing ','Huang ','Xu ','Chu ','Pi ','Xi ','Xi ','Tan ','Koraeru ','Zong ','Dui ','[?] ','Ki ','Yi ','Chi ','Ren ','Xun ','Shi ','Xi ','Lao ','Heng ','Kuang ','Mu ','Zhi ','Xie ','Lian ','Tiao ','Huang ','Die ','Hao ','Kong ','Gui ','Heng ','Xi ','Xiao ','Shu ','S ','Kua ','Qiu ','Yang ','Hui ','Hui ','Chi ','Jia ','Yi ','Xiong ','Guai ','Lin ','Hui ','Zi ','Xu ','Chi ','Xiang ','Nu ','Hen ','En ','Ke ','Tong ','Tian ','Gong ','Quan ','Xi ','Qia ','Yue ','Peng ','Ken ','De ','Hui ','E ','Kyuu ','Tong ','Yan ','Kai ','Ce ','Nao ','Yun ','Mang ','Yong ','Yong ','Yuan ','Pi ','Kun ','Qiao ','Yue ','Yu ','Yu ','Jie ','Xi ','Zhe ','Lin ','Ti ','Han ','Hao ','Qie ','Ti ','Bu ','Yi ','Qian ','Hui ','Xi ','Bei ','Man ','Yi ','Heng ','Song ','Quan ','Cheng ','Hui ','Wu ','Wu ','You ','Li ','Liang ','Huan ','Cong ','Yi ','Yue ','Li ','Nin ','Nao ','E ','Que ','Xuan ','Qian ','Wu ','Min ','Cong ','Fei ','Bei ','Duo ','Cui ','Chang ','Men ','Li ','Ji ','Guan ','Guan ','Xing ','Dao ','Qi ','Kong ','Tian ','Lun ','Xi ','Kan ','Kun ','Ni ','Qing ','Chou ','Dun ','Guo ','Chan ','Liang ','Wan ','Yuan ','Jin ','Ji ','Lin ','Yu ','Huo ','He ','Quan ','Tan ','Ti ','Ti ','Nie ','Wang ','Chuo ','Bu ','Hun ','Xi ','Tang ','Xin ','Wei ','Hui ','E ','Rui ','Zong ','Jian ','Yong ','Dian ','Ju ','Can ','Cheng ','De ','Bei ','Qie ','Can ','Dan ','Guan ','Duo ','Nao ','Yun ','Xiang ','Zhui ','Die ','Huang ','Chun ','Qiong ','Re ','Xing ','Ce ','Bian ','Hun ','Zong ','Ti ',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/x23.php | app/code/community/Catalin/SEO/Helper/data/x23.php | <?php
$UTF8_TO_ASCII[0x23] = array(
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/Helper/data/xb2.php | app/code/community/Catalin/SEO/Helper/data/xb2.php | <?php
$UTF8_TO_ASCII[0xb2] = array(
'Shu ','Xuan ','Feng ','Shen ','Zhen ','Fu ','Xian ','Zhe ','Wu ','Fu ','Li ','Lang ','Bi ','Chu ','Yuan ','You ','Jie ','Dan ','Yan ','Ting ','Dian ','Shui ','Hui ','Gua ','Zhi ','Song ','Fei ','Ju ','Mi ','Qi ','Qi ','Yu ','Jun ','Zha ','Meng ','Qiang ','Si ','Xi ','Lun ','Li ','Die ','Tiao ','Tao ','Kun ','Gan ','Han ','Yu ','Bang ','Fei ','Pi ','Wei ','Dun ','Yi ','Yuan ','Su ','Quan ','Qian ','Rui ','Ni ','Qing ','Wei ','Liang ','Guo ','Wan ','Dong ','E ','Ban ','Di ','Wang ','Can ','Yang ','Ying ','Guo ','Chan ','[?] ','La ','Ke ','Ji ','He ','Ting ','Mai ','Xu ','Mian ','Yu ','Jie ','Shi ','Xuan ','Huang ','Yan ','Bian ','Rou ','Wei ','Fu ','Yuan ','Mei ','Wei ','Fu ','Ruan ','Xie ','You ','Qiu ','Mao ','Xia ','Ying ','Shi ','Chong ','Tang ','Zhu ','Zong ','Ti ','Fu ','Yuan ','Hui ','Meng ','La ','Du ','Hu ','Qiu ','Die ','Li ','Gua ','Yun ','Ju ','Nan ','Lou ','Qun ','Rong ','Ying ','Jiang ','[?] ','Lang ','Pang ','Si ','Xi ','Ci ','Xi ','Yuan ','Weng ','Lian ','Sou ','Ban ','Rong ','Rong ','Ji ','Wu ','Qiu ','Han ','Qin ','Yi ','Bi ','Hua ','Tang ','Yi ','Du ','Nai ','He ','Hu ','Hui ','Ma ','Ming ','Yi ','Wen ','Ying ','Teng ','Yu ','Cang ','So ','Ebi ','Man ','[?] ','Shang ','Zhe ','Cao ','Chi ','Di ','Ao ','Lu ','Wei ','Zhi ','Tang ','Chen ','Piao ','Qu ','Pi ','Yu ','Jian ','Luo ','Lou ','Qin ','Zhong ','Yin ','Jiang ','Shuai ','Wen ','Jiao ','Wan ','Zhi ','Zhe ','Ma ','Ma ','Guo ','Liu ','Mao ','Xi ','Cong ','Li ','Man ','Xiao ','Kamakiri ','Zhang ','Mang ','Xiang ','Mo ','Zui ','Si ','Qiu ','Te ','Zhi ','Peng ','Peng ','Jiao ','Qu ','Bie ','Liao ','Pan ','Gui ','Xi ','Ji ','Zhuan ','Huang ','Fei ','Lao ','Jue ','Jue ','Hui ','Yin ','Chan ','Jiao ','Shan ','Rao ','Xiao ','Mou ','Chong ','Xun ','Si ','[?] ','Cheng ','Dang ','Li ','Xie ','Shan ','Yi ','Jing ','Da ','Chan ','Qi ',
);
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/sql/catalin_seo_setup/upgrade-2.0.0-3.0.0.php | app/code/community/Catalin/SEO/sql/catalin_seo_setup/upgrade-2.0.0-3.0.0.php | <?php
/* @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;
$installer->startSetup();
$tableName = $installer->getTable('catalin_seo/attribute_url_key');
/**
* Create table 'catalin_seo/attribute_url_key'
*/
$table = $installer->getConnection()
->addColumn($tableName, 'url_value', array(
'type' => Varien_Db_Ddl_Table::TYPE_TEXT,
'length' => 255,
'comment' => 'Url Value'
));
$installer->endSetup();
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
caciobanu/improved-magento-layered-navigation | https://github.com/caciobanu/improved-magento-layered-navigation/blob/3e59498798b62b44b9cc3aca5f9275d95cb2fdb7/app/code/community/Catalin/SEO/sql/catalin_seo_setup/install-2.0.0.php | app/code/community/Catalin/SEO/sql/catalin_seo_setup/install-2.0.0.php | <?php
/* @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;
$installer->startSetup();
$tableName = $installer->getTable('catalin_seo/attribute_url_key');
/**
* Drop table - needed for reinstall to work
*/
$installer->getConnection()->dropTable($tableName);
/**
* Create table 'catalin_seo/attribute_url_key'
*/
$table = $installer->getConnection()
->newTable($tableName)
->addColumn('id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
'unsigned' => true,
'nullable' => false,
'primary' => true,
'auto_increment' => true,
), 'Id')
->addColumn('attribute_code', Varien_Db_Ddl_Table::TYPE_TEXT, 255, array(
), 'Attribute Code')
->addColumn('attribute_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
'unsigned' => true,
), 'Attribute Id')
->addColumn('store_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
'unsigned' => true,
), 'Store Id')
->addColumn('option_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
'unsigned' => true,
), 'Option Id')
->addColumn('url_key', Varien_Db_Ddl_Table::TYPE_TEXT, 255, array(
), 'Url Key')
->setComment('Tag');
$installer->getConnection()->createTable($table);
$installer->endSetup();
| php | MIT | 3e59498798b62b44b9cc3aca5f9275d95cb2fdb7 | 2026-01-05T04:58:11.914985Z | false |
inphinit/inphinit-php-proxy | https://github.com/inphinit/inphinit-php-proxy/blob/e1c015846da2cedcc74cb049587135675740280b/proxy.php | proxy.php | <?php
use Inphinit\Proxy\Proxy;
use Inphinit\Proxy\Drivers\CurlDriver;
use Inphinit\Proxy\Drivers\StreamDriver;
if (empty($_GET['url'])) {
echo 'URL not defined';
exit;
}
$url = $_GET['url'];
//Usage without autoload
require 'src/Proxy.php';
require 'src/Drivers/CurlDriver.php';
require 'src/Drivers/StreamDriver.php';
$proxy = new Proxy();
// Set drivers used for download
$proxy->setDrivers([
//CurlDriver::class,
StreamDriver::class
]);
/*
// PHP 5.4 sintax
$proxy->setDrivers([
'Inphinit\Proxy\Drivers\CurlDriver',
'Inphinit\Proxy\Drivers\StreamDriver',
]);
*/
// Set max download size
// $proxy->setMaxDownloadSize(5242880);
// Set max redirections
// $proxy->setMaxRedirs(3);
// Set current referer
if (isset($_SERVER['HTTP_REFERER'])) {
$proxy->setReferer($_SERVER['HTTP_REFERER']);
}
// Set max timeout connection
// $proxy->setTimeout(10);
// Set current user-agent
if (isset($_SERVER['HTTP_USER_AGENT'])) {
$proxy->setUserAgent($_SERVER['HTTP_USER_AGENT']);
}
// Use specific directory
// $proxy->setTemporary(__DIR__ . '/cache');
// Set allowed URLs
/*
$proxy->setAllowedUrls([
'https://*.domain.io/',
'https://cdn.foobar.io/'
]);
*/
// Set allowed Content-Types
// $proxy->addAllowedType('image/ico', true);
// Extra configs for CurlDriver
// $proxy->setOptions('curl', [ CURLOPT_SSLVERSION => CURL_SSLVERSION_TLSv1_3 ]);
// Extra configs for StreamDriver, see details in: https://www.php.net/manual/en/context.php
/*
$proxy->setOptions('stream', [
'http' => [
'method' => 'POST'
'user_agent' => 'foo/bar',
],
'ssl' => [
...
]
]);
*/
try {
// Execute download
$proxy->download($url);
if (empty($_GET['callback'])) {
// Display raw output
$proxy->response();
} else {
// Display callback with data URI content
$proxy->jsonp($_GET['callback']);
}
} catch (Exception $ee) {
$code = $ee->getCode();
$message = $ee->getMessage();
echo "Error: ({$code}) {$message}";
}
| php | MIT | e1c015846da2cedcc74cb049587135675740280b | 2026-01-05T04:58:13.595491Z | false |
inphinit/inphinit-php-proxy | https://github.com/inphinit/inphinit-php-proxy/blob/e1c015846da2cedcc74cb049587135675740280b/src/Proxy.php | src/Proxy.php | <?php
/**
* Inphinit Proxy
*
* Copyright (c) 2025 Guilherme Nascimento
*
* Released under the MIT license
*/
namespace Inphinit\Proxy;
class Proxy
{
private $maxDownloadSize = 2097152;
private $maxRedirs = 5;
private $referer;
private $timeout = 30;
private $userAgent;
private $temporary;
private $options = [];
private $optionsUpdate = 1;
private $driver;
private $drivers = [];
private $allowedUrls = [];
private $allowedUrlsRegEx;
private $allowedTypes = [
'image/apng' => true,
'image/png' => true,
'image/avif' => true,
'image/webp' => true,
'image/gif' => true,
'image/jpeg' => true,
'image/svg+xml' => false,
'image/svg-xml' => false // Support for old web servers (an old bug)
];
private $controlAllowOrigin = '';
private $controlAllowHeaders = [
'Authorization',
'Content-Type',
'Upgrade-Insecure-Requests',
'X-Requested-With'
];
private $contentType;
private $httpStatus;
private $errorCode;
private $errorMessage;
private $hasResponse = false;
private $responseCacheTime = 60;
private $coreException = false;
private $coreHttpStatus = false;
public function __construct()
{
$this->coreException = class_exists('Inphinit\Exception');
$this->coreHttpStatus = class_exists('Inphinit\Http\Status');
}
/**
* Set the maximum allowed download size
*
* @param int $value
* @return void
*/
public function setMaxDownloadSize($value)
{
$this->maxDownloadSize = $value;
$this->refreshOptionsUpdate();
}
/**
* Get the maximum allowed download size
*
* @return int
*/
public function getMaxDownloadSize()
{
return $this->maxDownloadSize;
}
/**
* Set the maximum number of HTTP redirects
*
* @param int $value
* @return void
*/
public function setMaxRedirs($value)
{
$this->maxRedirs = $value;
$this->refreshOptionsUpdate();
}
/**
* Get the maximum number of HTTP redirects
*
* @return int
*/
public function getMaxRedirs()
{
return $this->maxRedirs;
}
/**
* Set the Referer request header
*
* @param string $value
* @return void
*/
public function setReferer($value)
{
$this->referer = $value;
$this->refreshOptionsUpdate();
}
/**
* Get the Referer request header
*
* @return string
*/
public function getReferer()
{
return $this->referer;
}
/**
* Set the connection timeout in seconds
*
* @param int $value
* @return void
*/
public function setTimeout($value)
{
$this->timeout = $value;
$this->refreshOptionsUpdate();
}
/**
* Get the connection timeout in seconds
*
* @return int
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* Set the User-Agent request header
*
* @param string $value
* @return void
*/
public function setUserAgent($value)
{
$this->userAgent = $value;
$this->refreshOptionsUpdate();
}
/**
* Get the User-Agent request header
*
* @return string
*/
public function getUserAgent()
{
return $this->userAgent;
}
/**
* Set the list of driver class names used for downloading resources
*
* @param array $drivers
* @return void
*/
public function setDrivers(array $drivers)
{
$this->drivers = $drivers;
}
/**
* Set the Access-Control-Allow-Origin header
*
* @param string $origin
* @throws \Inphinit\Exception
* @throws \Exception
* @return void
*/
public function setControlAllowOrigin($origin)
{
if ($origin !== '*' && preg_match('#^https?://.*$#', $origin) !== 1) {
$this->raise('Invalid origin');
}
$this->controlAllowOrigin = $origin;
}
/**
* Set the list of allowed headers
*
* @param array $headers
* @return void
*/
public function setControlAllowHeaders(array $headers)
{
$this->controlAllowHeaders = $headers;
}
/**
* Set generic options
*
* @param string $key
* @param mixed $value
* @return void
*/
public function setOptions($key, $value)
{
$this->options[$key] = $value;
$this->refreshOptionsUpdate();
}
/**
* Get generic options
*
* @param string $key Optional. If the parameter is not defined, it will
* return an array with all the settings already defined.
* @return mixed
*/
public function getOptions($key = null)
{
if ($key === null) {
return $this->options;
}
return isset($this->options[$key]) ? $this->options[$key] : null;
}
/**
* Gets the update value (incremental), used by drivers to check if they need to reconfigure something.
*
* @return int
*/
public function getOptionsUpdate()
{
return $this->optionsUpdate;
}
/**
* Set the list of allowed URLs for download
*
* @param array $urls
* @return void
*/
public function setAllowedUrls(array $urls)
{
$this->allowedUrls = $urls;
$this->allowedUrlsRegEx = null;
}
/**
* Add a Content-Type to the allowed list
*
* @param string $type
* @param bool $binary
* @return void
*/
public function addAllowedType($type, $binary)
{
if (is_bool($binary)) {
$this->allowedTypes[$type] = $binary;
} else {
$this->raise('The $binary parameter must be boolean');
}
}
/**
* Remove a Content-Type from the allowed list
*
* @param string $type
* @return void
*/
public function removeAllowedType($type)
{
unset($this->allowedTypes[$type]);
}
/**
* Check if a given Content-Type is allowed (this method will be used by drivers)
*
* @param string $type
* @param string|null $errorMessage
* @return bool
*/
public function isAllowedType($type, &$errorMessage = null)
{
$type = trim($type);
$pos = strpos($type, ';');
if ($pos > 0) {
$type = substr($type, 0, $pos);
}
if (array_key_exists($type, $this->allowedTypes)) {
return true;
}
$errorMessage = 'The Content-Type header has the value "' . $type . '", which is not allowed';
return false;
}
/**
* Set the temporary storage path or stream for downloaded content (e.g., `/mnt/storage/`, `php://temp`, `php://memory`)
*
* @param string $path
* @throws \Inphinit\Exception
* @throws \Exception
* @return void
*/
public function setTemporary($path)
{
if ($this->temporary) {
$this->reset();
fclose($this->temporary);
}
if (strpos($path, 'php://') !== 0) {
$path = tempnam($path, '~' . mt_rand(0, 99));
} elseif ($path !== 'php://memory' && preg_match('#^php://temp(/maxmemory:\d+)?$#', $path) !== 1) {
$this->raise('Invalid stream: ' . $path);
}
$temp = fopen($path, 'r+b');
if ($temp === false) {
$this->raise('Failed to open: ' . $path);
}
$this->temporary = $temp;
}
/**
* Get the temporary stream resource used for downloaded content
*
* @return resource|null
*/
public function getTemporary()
{
return $this->temporary;
}
/**
* Perform the download
*
* @param string $url Set URL for download
* @throws \Inphinit\Exception
* @throws \Exception
* @return void
*/
public function download($url)
{
if ($this->temporary === null) {
$temporary = tmpfile();
if ($temporary) {
$this->temporary = $temporary;
} else {
$this->raise('Failed to open temporary file');
}
}
if ($this->validateUrl($url) === false) {
$this->raise('URL not allowed: ' . $url);
}
$this->errorCode = null;
$this->errorMessage = null;
$this->httpStatus = null;
$this->reset();
if ($this->driver === null) {
$selected = null;
foreach ($this->drivers as $driver) {
$selected = new $driver($this);
if ($selected->available()) {
break;
} else {
$selected = null;
}
}
if ($selected) {
$this->driver = $selected;
} else {
$this->raise('None of the defined drivers are supported');
}
}
$success = $this->driver->exec($url, $this->httpStatus, $this->contentType, $this->errorCode, $this->errorMessage);
$httpStatus = $this->httpStatus;
$contentType = $this->contentType;
if ($contentType) {
$contentType = trim($contentType);
$this->contentType = $contentType;
}
if ($httpStatus !== null && ($httpStatus < 200 || $httpStatus >= 300)) {
if ($this->coreHttpStatus) {
$this->errorMessage = Status::message($httpStatus, $this->errorMessage);
} else {
$this->errorMessage = 'HTTP error: ' . $httpStatus;
}
$success = false;
} elseif ($success) {
if ($this->isAllowedType($contentType, $this->errorMessage) === false) {
$success = false;
}
}
if ($success) {
$this->hasResponse = true;
} else {
$this->reset();
if ($this->errorMessage === null) {
$this->errorMessage = 'An unexpected issue occurred';
}
$this->raise($this->errorMessage, $this->errorCode);
}
}
/**
* Set the cache duration (in seconds) or disable cache for Proxy::respose() or Proxy::jsonp()
*
* @param int $seconds Set seconds
* @return void
*/
public function setResponseCacheTime($seconds)
{
if ($seconds < 0) {
$this->raise('Seconds must be 0 or greater');
}
$this->responseCacheTime = $seconds;
}
/**
* Dump response to output
*
* @throws \Inphinit\Exception
* @throws \Exception
* @return void
*/
public function response()
{
if ($this->hasResponse === false) {
$this->raise('No downloads yet');
}
$this->sendHeaders($this->contentType);
$handle = $this->temporary;
rewind($handle);
while (feof($handle) === false) {
echo fread($handle, 131072);
}
}
/**
* Output JSONP callback with URL or data URI content
*
* @param string $callback JavaScript callback function name
* @throws \Inphinit\Exception
* @throws \Exception
* @return void
*/
public function jsonp($callback)
{
if ($this->hasResponse === false) {
$this->raise('No downloads yet');
}
if (preg_match('#^[$_a-z][\w$]*$#i', $callback) !== 1) {
$this->raise('Invalid callback name');
}
$this->sendHeaders('application/javascript');
$contentType = $this->contentType;
$extra = null;
$extract = explode(';', $this->contentType, 2);
if (isset($extract[1])) {
list($contentType, $extra) = $extract;
}
$binary = $this->allowedTypes[$contentType];
if ($binary) {
$contentType .= ';base64';
} elseif ($extra) {
$contentType .= ';' . $extra;
}
echo $callback, '("';
echo 'data:' . $contentType . ',';
$handle = $this->temporary;
rewind($handle);
if ($binary) {
while (feof($handle) === false) {
$raw = fread($handle, 8151);
echo base64_encode($raw);
}
} else {
while (feof($handle) === false) {
$raw = fgets($handle, 4096);
echo rawurlencode($raw);
}
}
echo '");';
}
/**
* If last download was successful, contents will be returned
*
* @param int $length Optional. The maximum bytes to read. If it is not defined or is -1, it will read the entire remaining buffer.
* @param int $offset Optional. Seek to the specified offset before reading. If this number is negative, no seeking will occur and reading will start from the current position.
* @return string|false
*/
public function getContents($length = -1, $offset = -1)
{
return $this->temporary ? stream_get_contents($this->temporary, $length, $offset) : false;
}
/**
* If last download was successful, Content-Type will be returned
*
* @return string|null
*/
public function getContentType()
{
return $this->contentType;
}
/**
* If last download was successful, HTTP status will be returned
*
* @return int|null
*/
public function getHttpStatus()
{
return $this->httpStatus;
}
/**
* Reset last download
*
* @return void
*/
public function reset()
{
$this->contentType = null;
$this->hasResponse = false;
if ($this->temporary) {
ftruncate($this->temporary, 0);
rewind($this->temporary);
}
}
private function refreshOptionsUpdate()
{
$this->optionsUpdate += 1;
}
private function sendHeaders($contentType)
{
header('Access-Control-Allow-Credentials: true');
if ($this->controlAllowOrigin) {
header('Access-Control-Allow-Origin: ' . $this->controlAllowOrigin);
}
if ($this->controlAllowHeaders) {
header('Access-Control-Allow-Headers: ' . implode(', ', $this->controlAllowHeaders));
}
header('Access-Control-Allow-Methods: OPTIONS, GET');
$seconds = $this->responseCacheTime;
$time = time();
if ($seconds > 0) {
header('Access-Control-Max-Age: ' . $seconds);
header('Cache-Control: public, max-age=' . $seconds);
$date = gmdate('D, d M Y H:i:s', $time + $seconds);
} else {
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Pragma: no-cache');
$date = gmdate('D, d M Y H:i:s');
}
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $time) . ' GMT');
header('Expires: ' . $date . ' GMT');
header('Content-type: ' . $contentType);
}
private function validateUrl($url)
{
if ($this->allowedUrls) {
if ($this->allowedUrlsRegEx === null) {
foreach ($this->allowedUrls as &$entry) {
$entry = preg_quote($entry, '#');
$entry = str_replace('\\*', '[^/]+', $entry);
}
$this->allowedUrlsRegEx = '#^(' . implode('|', $this->allowedUrls) . ')$#';
}
if (preg_match($this->allowedUrlsRegEx, $url) !== 1) {
return false;
}
}
return true;
}
private function raise($message, $code = 0)
{
$message = get_class($this->driver) . ': ' . $message;
if ($this->coreException) {
throw new \Inphinit\Exception($message, $code, 3);
} else {
throw new \Exception($message, $code);
}
}
public function __destruct()
{
if ($this->temporary) {
$meta_data = stream_get_meta_data($this->temporary);
$path = $meta_data['uri'];
fclose($this->temporary);
$this->temporary = null;
if (strpos($path, 'php://') !== 0 && is_file($path)) {
unlink($path);
}
}
$this->driver = null;
}
}
| php | MIT | e1c015846da2cedcc74cb049587135675740280b | 2026-01-05T04:58:13.595491Z | false |
inphinit/inphinit-php-proxy | https://github.com/inphinit/inphinit-php-proxy/blob/e1c015846da2cedcc74cb049587135675740280b/src/Drivers/InterfaceDriver.php | src/Drivers/InterfaceDriver.php | <?php
/**
* Inphinit Proxy
*
* Copyright (c) 2025 Guilherme Nascimento
*
* Released under the MIT license
*/
namespace Inphinit\Proxy\Drivers;
use Inphinit\Proxy\Proxy;
interface InterfaceDriver
{
/**
* Constructor
*
* @param \Inphinit\Proxy\Proxy $proxy Instance of the Proxy using this driver
* @return void
*/
public function __construct(Proxy $proxy);
/**
* Check if the driver is available
*
* @return bool True if the driver can be used, false otherwise
*/
public function available();
/**
* Execute download
*
* @param string $url URL of the resource to download
* @param int $httpStatus HTTP status code of the response
* @param string $contentType Content-Type of the response
* @param int $errorCode Error code if any error occurred
* @param string $errorMessage Error message if any error occurre
* @return bool True on success, false on failure
*/
public function exec($url, &$httpStatus, &$contentType, &$errorCode, &$errorMessage);
}
| php | MIT | e1c015846da2cedcc74cb049587135675740280b | 2026-01-05T04:58:13.595491Z | false |
inphinit/inphinit-php-proxy | https://github.com/inphinit/inphinit-php-proxy/blob/e1c015846da2cedcc74cb049587135675740280b/src/Drivers/StreamDriver.php | src/Drivers/StreamDriver.php | <?php
/**
* Inphinit Proxy
*
* Copyright (c) 2025 Guilherme Nascimento
*
* Released under the MIT license
*/
namespace Inphinit\Proxy\Drivers;
use Inphinit\Proxy\Proxy;
class StreamDriver
{
private $context;
private $lastUpdate = 0;
private $proxy;
private $timeout = 30;
/**
* Create instace
*
* @param \Inphinit\Proxy\Proxy $proxy
* @return void
*/
public function __construct(Proxy $proxy)
{
$this->proxy = $proxy;
}
/**
* Check if the driver is available
*
* @return bool
*/
public function available()
{
// For convenience, if ini_get is disabled, the function will return true
return function_exists('ini_get') === false || ini_get('allow_url_fopen') == 1;
}
/**
* Execute download
*
* @param string $url
* @param int $httpStatus
* @param string $contentType
* @param int $errorCode
* @param string $errorMessage
* @return bool
*/
public function exec($url, &$httpStatus, &$contentType, &$errorCode, &$errorMessage)
{
$contentType = '';
$errorCode = 0;
$errorMessage = null;
$httpStatus = null;
$update = $this->proxy->getOptionsUpdate();
if ($this->context === null || $this->lastUpdate !== $update) {
$this->lastUpdate = $update;
$this->timeout = $this->proxy->getTimeout();
$options = [
'http' => [
'follow_location' => true,
'ignore_errors' => true,
'max_redirects' => $this->proxy->getMaxRedirs(),
'timeout' => $this->timeout
]
];
$referer = $this->proxy->getReferer();
if ($referer) {
$options['http']['referer'] = $referer;
}
$userAgent = $this->proxy->getUserAgent();
if ($userAgent) {
$options['http']['user_agent'] = $userAgent;
}
if (empty($options['http']['method'])) {
$options['http']['method'] = 'GET';
}
$extra = $this->proxy->getOptions('stream');
// Adds other contexts like Socket, SSL and notification.
if ($extra) {
$options += $extra;
}
// Adds extra settings to the HTTP context without changing important settings.
if (isset($extra['http'])) {
$options['http'] += $extra['http'];
}
$this->context = stream_context_create($options);
}
$start = microtime(true);
$handle = fopen($url, 'rb', false, $this->context);
if ($handle === false) {
$err = error_get_last();
$errorCode = $err['type'];
$errorMessage = $err['message'];
return false;
}
$meta_data = stream_get_meta_data($handle);
foreach ($meta_data['wrapper_data'] as $index => $header) {
if ($index === 0) {
if (preg_match('#HTTP/\d+\.\d+\s+(\d+)#', $header, $match)) {
$httpStatus = (int) $match[1];
} else {
$errorMessage = 'Invalid response';
break;
}
} elseif (stripos($header, 'content-type:') === 0) {
$contentType = substr($header, 13);
}
}
if ($httpStatus !== null && ($httpStatus < 200 || $httpStatus >= 300)) {
$errorMessage = '';
} elseif ($errorMessage === null && $this->proxy->isAllowedType($contentType, $errorMessage)) {
$downloaded = 0;
$maxSize = $this->proxy->getMaxDownloadSize();
$temp = $this->proxy->getTemporary();
$timeout = $this->timeout;
while (feof($handle) === false) {
if ((microtime(true) - $start) > $timeout) {
$errorMessage = 'Connection timed out';
break;
}
$data = fread($handle, 131072);
$downloaded += strlen($data);
if ($downloaded > $maxSize) {
$errorMessage = 'Download aborted because file size exceeded the maximum allowed';
break;
}
if (fwrite($temp, $data) === false) {
$errorMessage = 'Failed to write to temporary storage';
break;
}
}
}
fclose($handle);
return $errorMessage === null;
}
}
| php | MIT | e1c015846da2cedcc74cb049587135675740280b | 2026-01-05T04:58:13.595491Z | false |
inphinit/inphinit-php-proxy | https://github.com/inphinit/inphinit-php-proxy/blob/e1c015846da2cedcc74cb049587135675740280b/src/Drivers/CurlDriver.php | src/Drivers/CurlDriver.php | <?php
/**
* Inphinit Proxy
*
* Copyright (c) 2025 Guilherme Nascimento
*
* Released under the MIT license
*/
namespace Inphinit\Proxy\Drivers;
use Inphinit\Proxy\Proxy;
class CurlDriver
{
private $errorMessage;
private $handle;
private $httpStatus;
private $lastUpdate = 0;
private $maxDownloadSize;
private $proxy;
/**
* Create instace
*
* @param \Inphinit\Proxy\Proxy $proxy
* @return void
*/
public function __construct(Proxy $proxy)
{
$this->proxy = $proxy;
}
/**
* Check if the driver is available
*
* @return bool
*/
public function available()
{
return function_exists('curl_init');
}
/**
* Execute download
*
* @param string $url
* @param int $httpStatus
* @param string $contentType
* @param int $errorCode
* @param string $errorMessage
* @return bool
*/
public function exec($url, &$httpStatus, &$contentType, &$errorCode, &$errorMessage)
{
$update = $this->proxy->getOptionsUpdate();
if ($this->handle === null || $this->lastUpdate < $update) {
$this->lastUpdate = $update;
$this->handle = curl_init();
$ch = $this->handle;
$timeout = $this->proxy->getTimeout();
$options = [
CURLOPT_TIMEOUT => $timeout,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HEADER => false,
CURLOPT_MAXREDIRS => $this->proxy->getMaxRedirs(),
CURLOPT_RETURNTRANSFER => false
];
$extra = $this->proxy->getOptions('curl');
if ($extra) {
$options += $extra;
}
curl_setopt_array($ch, $options);
$referer = $this->proxy->getReferer();
if ($referer) {
curl_setopt($ch, CURLOPT_REFERER, $referer);
}
$userAgent = $this->proxy->getUserAgent();
if ($userAgent) {
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
}
curl_setopt($ch, CURLOPT_NOPROGRESS, false);
$this->maxDownloadSize = $this->proxy->getMaxDownloadSize();
if (PHP_VERSION_ID < 50500) {
$progressCallback = function ($downloadSize, $downloaded, $uploadSize, $uploaded) {
return $this->abort($downloaded);
};
} else {
$progressCallback = function ($resource, $downloadSize, $downloaded, $uploadSize, $uploaded) {
return $this->abort($downloaded);
};
}
curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, $progressCallback);
$temp = $this->proxy->getTemporary();
if (defined('CURLOPT_WRITEFUNCTION')) {
curl_setopt($ch, CURLOPT_WRITEFUNCTION, function($resource, $data) use ($temp) {
return fwrite($temp, $data);
});
} else {
curl_setopt($ch, CURLOPT_FILE, $temp);
}
} else {
$ch = $this->handle;
}
curl_setopt($ch, CURLOPT_URL, $url);
curl_exec($ch);
$errorCode = curl_errno($ch);
if ($errorCode !== 0) {
$errorMessage = $this->errorMessage ? $this->errorMessage : curl_error($ch);
if ($this->httpStatus !== null) {
$httpStatus = $this->httpStatus;
}
return false;
}
$httpStatus = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$contentType = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
return true;
}
private function abort($downloaded)
{
if ($downloaded > $this->maxDownloadSize) {
$this->errorMessage = 'Download aborted because file size exceeded the maximum allowed';
return 1;
}
$httpCode = curl_getinfo($this->handle, CURLINFO_HTTP_CODE);
if ($httpCode !== 0 && $httpCode < 200 || $httpCode >= 400) {
$this->httpStatus = $httpCode;
return 1;
}
$contentType = curl_getinfo($this->handle, CURLINFO_CONTENT_TYPE);
if ($httpCode < 300 && $contentType) {
return $this->proxy->isAllowedType($contentType, $this->errorMessage) ? 0 : 1;
}
return 0;
}
public function __destruct()
{
if ($this->handle) {
curl_close($this->handle);
}
}
}
| php | MIT | e1c015846da2cedcc74cb049587135675740280b | 2026-01-05T04:58:13.595491Z | false |
carlosbuenosvinos/opcache-dashboard | https://github.com/carlosbuenosvinos/opcache-dashboard/blob/cceeb8eb248edd9981f32a37d61790b3f6feab0c/opcache.php | opcache.php | <?php
if (isset($_GET['invalidate'])) {
opcache_invalidate($_GET['invalidate'], true);
header('Location: ' . $_SERVER['PHP_SELF'].'#scripts');
}
if (isset($_GET['reset'])) {
opcache_reset();
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ' . $_SERVER['PHP_SELF'].'#scripts');
}
/**
* Fetch configuration and status information from OpCache
*/
$config = opcache_get_configuration();
$status = opcache_get_status();
/**
* Turn bytes into a human readable format
* @param $bytes
*/
function size_for_humans($bytes)
{
if ($bytes > 1048576) {
return sprintf("%.2f MB", $bytes/1048576);
} elseif ($bytes > 1024) {
return sprintf("%.2f kB", $bytes/1024);
} else {
return sprintf("%d bytes", $bytes);
}
}
function getOffsetWhereStringsAreEqual($a, $b)
{
$i = 0;
while (strlen($a) && strlen($b) && strlen($a) > $i && $a{$i} === $b{$i}) {
$i++;
}
return $i;
}
function getSuggestionMessage($property, $value)
{
switch ($property) {
case 'opcache_enabled':
return $value ? '' : '<span class="glyphicon glyphicon-search"></span> You should enabled opcache';
break;
case 'cache_full':
return $value ? '<span class="glyphicon glyphicon-search"></span> You should increase opcache.memory_consumption' : '';
break;
case 'opcache.validate_timestamps':
return $value ? '<span class="glyphicon glyphicon-search"></span> If you are in a production environment you should disabled it' : '';
break;
}
return '';
}
function getStringFromPropertyAndValue($property, $value)
{
if ($value === false) {
return 'false';
}
if ($value === true) {
return 'true';
}
switch ($property) {
case 'used_memory':
case 'free_memory':
case 'wasted_memory':
case 'opcache.memory_consumption':
return size_for_humans($value);
break;
case 'current_wasted_percentage':
case 'opcache_hit_rate':
return number_format($value, 2).'%';
break;
case 'blacklist_miss_ratio':
return number_format($value, 2);
break;
}
return $value;
}
?>
<!DOCTYPE html>
<html>
<head>
<title>OPcache Dashboard - Carlos Buenosvinos (@buenosvinos)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="//www.php.net/favicon.ico">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet">
<style>
body { padding-top: 70px; }
h2 {
padding-top: 100px;
margin-top: -100px;
display: inline-block; /* required for webkit browsers */
}
</style>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="//oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target="#navbar-opcache">
<a href="https://github.com/carlosbuenosvinos/opcache-dashboard"><img style="position: absolute; top: 50px; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
<nav id="navbar-opcache" class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Zend OPcache <?= $config['version']['version']?></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="#hits">Hits</a></li>
<li><a href="#memory">Memory</a></li>
<li><a href="#keys">Keys</a></li>
<li><a href="#status">Status</a></li>
<li><a href="#configuration">Configuration</a></li>
<li><a href="#scripts">Scripts</a></li>
</ul>
</div>
</nav>
<div class="container">
<div class="jumbotron">
<h1>OPcache Dashboard</h1>
<h2>by Carlos Buenosvinos (<a href="https://twitter.com/buenosvinos">@buenosvinos</a>)</h2>
<p>PHP: <?= phpversion() ?> and OPcache: <?= $config['version']['version'] ?></p>
</div>
<?php
$stats = $status['opcache_statistics'];
$hitRate = round($stats['opcache_hit_rate'], 2);
?>
<h2 id="hits">Hits: <?= $hitRate ?>%</h2>
<div class="progress progress-striped">
<div class="progress-bar progress-bar-success" style="width: <?= $hitRate ?>%">
<span class="sr-only">Hits</span>
</div>
<div class="progress-bar progress-bar-danger" style="width: <?= (100 - $hitRate) ?>%">
<span class="sr-only">Misses</span>
</div>
</div>
<?php
$mem = $status['memory_usage'];
$totalMemory = $config['directives']['opcache.memory_consumption'];
$usedMemory = $mem['used_memory'];
$freeMemory = $mem['free_memory'];
$wastedMemory = $mem['wasted_memory'];
?>
<h2 id="memory">Memory: <?= size_for_humans($wastedMemory + $usedMemory) ?> of <?= size_for_humans($totalMemory) ?></h2>
<div class="progress progress-striped">
<div class="progress-bar progress-bar-danger" style="width: <?= round(($wastedMemory / $totalMemory) * 100, 0) ?>%">
<span class="sr-only">Wasted memory</span>
</div>
<div class="progress-bar progress-bar-warning" style="width: <?= round(($usedMemory / $totalMemory) * 100, 0) ?>%">
<span class="sr-only">Used memory</span>
</div>
<div class="progress-bar progress-bar-success" style="width: <?= round(($freeMemory / $totalMemory) * 100, 0) ?>%">
<span class="sr-only">Free memory</span>
</div>
</div>
<?php
$totalKeys = $stats['max_cached_keys'];
$usedKeys = $stats['num_cached_keys'];
$freeKeys = $totalKeys - $usedKeys;
?>
<h2 id="keys">Keys: <?= $usedKeys ?> of <?= $totalKeys ?></h2>
<div class="progress progress-striped">
<div class="progress-bar progress-bar-warning" style="width: <?= round(($usedKeys / $totalKeys) * 100, 0) ?>%">
<span class="sr-only">Used keys</span>
</div>
<div class="progress-bar progress-bar-success" style="width: <?= round(($freeKeys / $totalKeys) * 100, 0) ?>%">
<span class="sr-only">Free keys</span>
</div>
</div>
<h2 id="status">Status</h2>
<div class="table-responsive">
<table class="table table-striped table-hover">
<?php
foreach ($status as $key => $value) {
if ($key == 'scripts') {
continue;
}
if (is_array($value)) {
foreach ($value as $k => $v) {
$v = getStringFromPropertyAndValue($k, $v);
$m = getSuggestionMessage($k, $v);
?><tr class="<?= $m ? 'danger' : '' ?>"><th align="left"><?= $k ?></th><td align="right"><?= $v ?></td><td><?= $m ?></td></tr><?php
}
continue;
}
$mess = getSuggestionMessage($key, $value);
$value = getStringFromPropertyAndValue($key, $value);
?><tr class="<?= $mess ? 'danger' : '' ?>"><th align="left"><?= $key ?></th><td align="right"><?= $value ?></td><td><?= $mess ?></td></tr><?php
}
?>
</table>
</div>
<h2 id="configuration">Configuration</h2>
<div class="table-responsive">
<table class="table table-striped table-hover">
<?php foreach ($config['directives'] as $key => $value) {
$mess = getSuggestionMessage($key, $value);
?>
<tr class="<?= $mess ? 'danger' : '' ?>" >
<th align="left"><?= $key ?></th>
<td align="right"><?= getStringFromPropertyAndValue($key, $value) ?></td>
<td align="left"><?= $mess ?></td>
</tr>
<?php } ?>
</table>
</div>
<h2 id="scripts">Scripts (<?= count($status["scripts"]) ?>) <a type="button" class="btn btn-success" href="?reset">Reset all</a></h2>
<table class="table table-striped">
<tr>
<th>Options</th>
<th>Hits</th>
<th>Memory</th>
<th>Path</th>
</tr>
<?php
uasort($status['scripts'], function ($a, $b) { return $a['hits'] < $b ['hits']; });
$offset = null;
$previousKey = null;
foreach ($status['scripts'] as $key => $data) {
$offset = min(
getOffsetWhereStringsAreEqual(
(null === $previousKey) ? $key : $previousKey,
$key
),
(null === $offset) ? strlen($key) : $offset
);
$previousKey = $key;
}
foreach ($status['scripts'] as $key => $data) {
?>
<tr>
<td><a href="?invalidate=<?= $data['full_path'] ?>">Invalidate</a></td>
<td><?= $data['hits'] ?></td>
<td><?= size_for_humans($data['memory_consumption']) ?></td>
<td><?= substr($data['full_path'], $offset - 1) ?></td>
</tr>
<?php } ?>
</table>
</div>
<script src="//code.jquery.com/jquery.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
</body>
</html>
| php | MIT | cceeb8eb248edd9981f32a37d61790b3f6feab0c | 2026-01-05T04:58:25.269720Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Client.php | src/Asana/Client.php | <?php
namespace Asana;
use Asana\Dispatcher\BasicAuthDispatcher;
use Asana\Dispatcher\OAuthDispatcher;
use Asana\Errors\AsanaError;
use Asana\Errors\RetryableAsanaError;
use Asana\Errors\RateLimitEnforcedError;
use Asana\Iterator\CollectionPageIterator;
use Asana\Resources\Events;
use Asana\Resources\Portfolios;
use Asana\Resources\ProjectMemberships;
use Asana\Resources\Projects;
use Asana\Resources\Users;
class Client
{
const RETRY_DELAY = 1.0;
const RETRY_BACKOFF = 2.0;
public static $DEFAULTS = array(
'base_url' => 'https://app.asana.com/api/1.0',
'item_limit' => null,
'page_size' => 50,
'poll_interval' => 5,
'max_retries' => 5,
'full_payload' => null,
'iterator_type' => 'items',
'log_asana_change_warnings' => true
);
private static $QUERY_OPTIONS = array('limit', 'offset' , 'sync');
private static $REQUEST_OPTIONS = array('params', 'data', 'headers', 'files','curl');
private static $API_OPTIONS = array('pretty', 'fields', 'expand');
private static $CLIENT_OPTIONS = null;
private static $ALL_OPTIONS = null;
public function __construct($dispatcher, $options = array())
{
Client::bootstrap();
$this->dispatcher = $dispatcher;
$this->options = array_merge(Client::$DEFAULTS, $options);
$this->attachments = new Resources\Attachments($this);
$this->auditlogapi = new Resources\AuditLogAPI($this);
$this->batchapi = new Resources\BatchAPI($this);
$this->customfields = new Resources\CustomFields($this);
$this->customfieldsettings = new Resources\CustomFieldSettings($this);
$this->events = new Resources\Events($this);
$this->goalrelationships = new Resources\GoalRelationships($this);
$this->goals = new Resources\Goals($this);
$this->jobs = new Resources\Jobs($this);
$this->memberships = new Resources\Memberships($this);
$this->organizationexports = new Resources\OrganizationExports($this);
$this->portfolios = new Resources\Portfolios($this);
$this->projectbriefs = new Resources\ProjectBriefs($this);
$this->portfoliomemberships = new Resources\PortfolioMemberships($this);
$this->projects = new Resources\Projects($this);
$this->projectmemberships = new Resources\ProjectMemberships($this);
$this->projectstatuses = new Resources\ProjectStatuses($this);
$this->projecttemplates = new Resources\ProjectTemplates($this);
$this->stories = new Resources\Stories($this);
$this->sections = new Resources\Sections($this);
$this->statusupdates = new Resources\StatusUpdates($this);
$this->tags = new Resources\Tags($this);
$this->tasks = new Resources\Tasks($this);
$this->teammemberships = new Resources\TeamMemberships($this);
$this->teams = new Resources\Teams($this);
$this->timeperiods = new Resources\TimePeriods($this);
$this->typeahead = new Resources\Typeahead($this);
$this->users = new Resources\Users($this);
$this->usertasklists = new Resources\UserTaskLists($this);
$this->webhooks = new Resources\Webhooks($this);
$this->workspacememberships = new Resources\WorkspaceMemberships($this);
$this->workspaces = new Resources\Workspaces($this);
}
public static function accessToken($accessToken, $options = array())
{
return new Client(new Dispatcher\AccessTokenDispatcher($accessToken), $options);
}
public static function oauth($credentials = array(), $options = array())
{
return new Client(new Dispatcher\OAuthDispatcher($credentials), $options);
}
public function request($method, $path, $options)
{
$options = Client::array_merge_recursive_distinct($this->options, $options);
$requestOptions = $this->parseRequestOptions($options);
$uri = $options['base_url'] . $path;
$retryCount = 0;
while (true) {
try {
$response = $this->dispatcher->request($method, $uri, $requestOptions);
if (!array_key_exists('headers', $options)) {
$options['headers'] = array();
}
$this->logAsanaChangeHeaders($options['headers'], $response->headers->toArray());
Errors\AsanaError::handleErrorResponse($response);
if ($options['full_payload']) {
return $response->body;
} else {
return $response->body->data;
}
} catch (RetryableAsanaError $e) {
if ($retryCount < $options['max_retries']) {
$this->handleRetryableError($e, $retryCount);
$retryCount++;
} else {
throw $e;
}
}
}
}
private function logAsanaChangeHeaders($reqHeaders, $resHeaders)
{
if (!$this->options['log_asana_change_warnings']) {
return;
}
$changeHeaderKey = null;
foreach ((array) $resHeaders as $key => $value) {
if (strtolower($key) == 'asana-change') {
$changeHeaderKey = $key;
}
}
if ($changeHeaderKey != null) {
$flagsAccountedFor = array();
foreach ((array) $reqHeaders as $reqHeader => $reqHeaderValue) {
$lowerReqHeader = strtolower($reqHeader);
if ($lowerReqHeader == "asana-enable" || $lowerReqHeader == "asana-disable") {
$flagsAccountedFor = array_merge($flagsAccountedFor, preg_split("/,/", $reqHeaderValue));
}
}
$changesArray = preg_split("/,/", $resHeaders[$changeHeaderKey]);
if ($changesArray == null) {
return;
}
foreach ($changesArray as $change) {
$changeParams = preg_split("/;/", $change);
$name = "";
$info = "";
$affected = "";
foreach ((array) $changeParams as $changeParam) {
$paramKeyValue = preg_split("/=/", $changeParam);
$paramKeyValue[0] = trim($paramKeyValue[0]);
$paramKeyValue[1] = trim($paramKeyValue[1]);
switch ($paramKeyValue[0]) {
case "name":
$name = $paramKeyValue[1];
break;
case "info":
$info = $paramKeyValue[1];
break;
case "affected":
$affected = $paramKeyValue[1];
break;
}
}
if ($affected != "true") {
continue;
}
if (!in_array($name, $flagsAccountedFor)) {
$message = "This request is affected by the \"" . $name . "\" deprecation. " .
"Please visit this url for more info: " . $info . "\n" .
"Adding \"" . $name . "\" to your \"Asana-Enable\" or \"Asana-Disable\" header " .
"will opt in/out to this deprecation and suppress this warning.";
trigger_error($message, E_USER_WARNING);
}
}
}
}
private function handleRetryableError($e, $retryCount)
{
if ($e instanceof Errors\RateLimitEnforcedError) {
sleep($e->retryAfter);
} else {
sleep($time = self::RETRY_DELAY * pow(self::RETRY_BACKOFF, $retryCount));
}
}
public function get($path, $query, $options = array())
{
if ($query == null) {
$query = array();
}
$apiOptions = $this->parseApiOptions($options, true);
$queryOptions = $this->parseQueryOptions($options);
$parameterOptions = $this->parseParameterOptions($options);
$options['params'] = array_merge($queryOptions, $apiOptions, $parameterOptions, $query);
return $this->request("GET", $path, $options);
}
public function getCollection($path, $query, $options = array())
{
$options = array_merge($this->options, $options);
if ($options['iterator_type'] == 'items') {
$pageIterator = new CollectionPageIterator($this, $path, $query, $options);
return $pageIterator->items();
} elseif ($options['iterator_type'] == 'pages') {
$pageIterator = new CollectionPageIterator($this, $path, $query, $options);
return $pageIterator;
} elseif ($options['iterator_type'] == false) {
if (!isset($options['limit'])) {
$options['limit'] = $options['page_size'];
}
if ($options['full_payload'] === null) {
$options['full_payload'] = true;
}
return $this->get($path, $query, $options);
}
throw Exception('Unknown value for "iterator_type" option: ' . (string)$options['iterator_type']);
}
public function post($path, $data, $options = array())
{
$parameterOptions = $this->parseParameterOptions($options);
$post_headers = array('content-type' => 'application/json');
if (array_key_exists("headers", $options)) {
$post_headers = array_merge($post_headers, $options["headers"]);
}
$options = array_merge(
$options,
array(
'headers' => $post_headers,
'data' => array(
'data' => array_merge($parameterOptions, $data), # values in the data body takes precendence
'options' => $this->parseApiOptions($options)
)
)
);
return $this->request('POST', $path, $options);
}
public function put($path, $data, $options = array())
{
$parameterOptions = $this->parseParameterOptions($options);
$put_headers = array('content-type' => 'application/json');
if (array_key_exists("headers", $options)) {
$put_headers = array_merge($put_headers, $options["headers"]);
}
$options = array_merge(
$options,
array(
'headers' => $put_headers,
'data' => array(
'data' => array_merge($parameterOptions, $data), # values in the data body takes precendence
'options' => $this->parseApiOptions($options)
)
)
);
return $this->request('PUT', $path, $options);
}
public function delete($path, $data, $options = array())
{
return $this->request('DELETE', $path, $options);
}
private function parseQueryOptions($options)
{
return $this->selectOptions($options, Client::$QUERY_OPTIONS);
}
private function parseParameterOptions($options)
{
return $this->selectOptions($options, Client::$ALL_OPTIONS, true);
}
private function parseApiOptions($options, $queryString = false)
{
$apiOptions = $this->selectOptions($options, Client::$API_OPTIONS);
if ($queryString) {
// Prefix all options with "opt_"
$queryApiOptions = array();
foreach ($apiOptions as $key => $value) {
// Transform list/tuples into comma separated list
if (is_array($value)) {
$queryApiOptions["opt_{$key}"] = implode(',', $value);
} else {
$queryApiOptions["opt_{$key}"] = $value;
}
}
return $queryApiOptions;
} else {
return $apiOptions;
}
}
private function parseRequestOptions($options)
{
$requestOptions = $this->selectOptions($options, Client::$REQUEST_OPTIONS);
if (isset($requestOptions['params'])) {
foreach ($requestOptions['params'] as $key => $value) {
if (is_bool($value)) {
$requestOptions['params'][$key] = json_encode($value);
}
}
}
if (isset($requestOptions['data'])) {
// remove empty 'options':
if (isset($requestOptions['data']['options']) && count($requestOptions['data']['options']) == 0) {
unset($requestOptions['data']['options']);
}
// serialize to JSON
$requestOptions['data'] = json_encode($requestOptions['data']);
}
return $requestOptions;
}
public function selectOptions($options, $keys, $invert = false)
{
$options = array_merge($this->options, $options);
$result = array();
foreach ($options as $key => $value) {
// TODO: optimize?
$inKeys = !is_bool(array_search($key, $keys));
if (($invert && !$inKeys) or (!$invert && $inKeys)) {
$result[$key] = $options[$key];
}
}
return $result;
}
private static function bootstrap()
{
if (Client::$ALL_OPTIONS == null) {
Client::$CLIENT_OPTIONS = array_keys(Client::$DEFAULTS);
Client::$ALL_OPTIONS = array_merge(
Client::$CLIENT_OPTIONS,
Client::$QUERY_OPTIONS,
Client::$REQUEST_OPTIONS,
Client::$API_OPTIONS
);
}
}
private static function array_merge_recursive_distinct(array &$array1, array &$array2)
{
$merged = $array1;
foreach ($array2 as $key => &$value)
{
if (is_array($value) && isset($merged[$key]) && is_array($merged[$key]))
{
$merged[$key] = Client::array_merge_recursive_distinct($merged[$key], $value);
}
else
{
$merged[$key] = $value;
}
}
return $merged;
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Iterator/PageIterator.php | src/Asana/Iterator/PageIterator.php | <?php
namespace Asana\Iterator;
use Asana\Iterator\ItemIterator;
abstract class PageIterator implements \Iterator
{
abstract protected function getInitial();
abstract protected function getNext();
abstract protected function getContinuation($result);
public function __construct($client, $path, $query, $options)
{
$this->client = $client;
$this->path = $path;
$this->query = $query;
$this->options = array_merge($client->options, $options, array('full_payload' => true));
$this->itemLimit = isset($this->options['item_limit']) ? $this->options['item_limit'] : null;
if ($this->itemLimit == null) {
$this->itemLimit = INF;
}
$this->pageSize = $this->options['page_size'];
$this->count = 0;
$this->continuation = false;
$this->currentPage = null;
$this->currentPageNumber = 0;
}
#[\ReturnTypeWillChange]
public function rewind()
{
# Compute the limit from the page size, and remaining item limit
$this->options['limit'] = min($this->pageSize, $this->itemLimit - $this->count);
if ($this->options['limit'] == 0) {
$this->currentPage = null;
} else {
$result = $this->getInitial();
$this->continuation = $this->getContinuation($result);
$data = isset($result->data) ? $result->data : null;
if ($data != null) {
$this->count += count($data);
}
$this->currentPage = $data;
}
}
#[\ReturnTypeWillChange]
public function next()
{
$this->currentPageNumber++;
# Compute the limit from the page size, and remaining item limit
$this->options['limit'] = min($this->pageSize, $this->itemLimit - $this->count);
if ($this->continuation == null || $this->options['limit'] == 0) {
$this->currentPage = null;
} else {
$result = $this->getNext();
$this->continuation = $this->getContinuation($result);
$data = isset($result->data) ? $result->data : null;
if ($data != null) {
$this->count += count($data);
}
$this->currentPage = $data;
}
}
#[\ReturnTypeWillChange]
public function valid()
{
return $this->currentPage !== null;
}
#[\ReturnTypeWillChange]
public function current()
{
return $this->currentPage;
}
#[\ReturnTypeWillChange]
public function key()
{
return $this->currentPageNumber;
}
#[\ReturnTypeWillChange]
public function items()
{
return new ItemIterator($this);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Iterator/EventsPageIterator.php | src/Asana/Iterator/EventsPageIterator.php | <?php
namespace Asana\Iterator;
use Asana\Iterator\PageIterator;
use Asana\Errors\InvalidTokenError;
class EventsPageIterator extends PageIterator
{
protected function getInitial()
{
if (!isset($this->query['sync'])) {
try {
$this->client->events->get($this->query, $this->options);
} catch (InvalidTokenError $e) {
$this->continuation = $e->sync;
}
} else {
$this->continuation = $this->query['sync'];
}
return $this->getNext();
}
protected function getNext()
{
$this->options['sync'] = $this->continuation;
return $this->client->events->get($this->query, $this->options);
}
protected function getContinuation($result)
{
return isset($result->sync) ? $result->sync : null;
}
public function next()
{
while (true) {
parent::next();
if (count($this->current()) > 0) {
break;
} else {
sleep($this->options['poll_interval']);
}
}
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Iterator/ItemIterator.php | src/Asana/Iterator/ItemIterator.php | <?php
namespace Asana\Iterator;
class ItemIterator implements \Iterator
{
public function __construct($pages)
{
$this->pages = $pages;
}
#[\ReturnTypeWillChange]
public function rewind()
{
$this->pages->rewind();
$this->items = null;
$this->item = null;
$this->itemIndex = -1;
$this->next();
}
#[\ReturnTypeWillChange]
public function next()
{
// if we don't have an items iterator try to get the next one
while ($this->items == null || !$this->items->valid()) {
$this->items = null;
// no more pages
if (!$this->pages->valid()) {
break;
}
$array = $this->pages->current();
if ($array) {
$this->items = new \ArrayIterator($array);
$this->items->rewind();
}
// advance the page iterator
$this->pages->next();
}
if ($this->items) {
$this->item = $this->items->current();
$this->itemIndex++;
// advance the item iterator
$this->items->next();
}
}
#[\ReturnTypeWillChange]
public function valid()
{
return $this->items != null;
}
#[\ReturnTypeWillChange]
public function current()
{
return $this->item;
}
#[\ReturnTypeWillChange]
public function key()
{
return $this->itemIndex;
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Iterator/CollectionPageIterator.php | src/Asana/Iterator/CollectionPageIterator.php | <?php
namespace Asana\Iterator;
use Asana\Iterator\PageIterator;
class CollectionPageIterator extends PageIterator
{
public $sync = null;
protected function getInitial()
{
return $this->client->get($this->path, $this->query, $this->options);
}
protected function getNext()
{
$this->options['offset'] = $this->continuation->offset;
return $this->client->get($this->path, $this->query, $this->options);
}
protected function getContinuation($result)
{
if (!empty($result->sync)) {
$this->sync = $result->sync;
}
return isset($result->next_page) ? $result->next_page : null;
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Test/MockDispatcher.php | src/Asana/Test/MockDispatcher.php | <?php
namespace Asana\Test;
use Asana\Test\MockRequest;
use Httpful\Response;
class MockDispatcher extends \Asana\Dispatcher\Dispatcher
{
public function __construct()
{
$this->responses = array();
$this->calls = array();
}
protected function createRequest()
{
return new MockRequest($this);
}
public function registerResponse($path, $status, $headers = null, $body = null)
{
$this->responses[$path] = array($status, $headers, $body);
}
public function responseForRequest($request)
{
$res = $this->responses[$request->uri];
if (is_array($res[0])) {
$res = array_shift($res[0]);
}
if (is_callable($res[0])) {
$res = $res[0]();
}
$status = $res[0];
$headers = $res[1];
$body = $res[2];
$head = "HTTP/1.1 {$status} OK\r\n";
if ($headers) {
foreach ($headers as $key => $value) {
$head .= "{$key}: {$value}\r\n";
}
}
$head .= "Content-Type: application/json\r\n\r\n";
$response = new \Httpful\Response($body, $head, $request);
$this->calls[] = array('request' => $request, 'response' => $response);
return $response;
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Test/MockRequest.php | src/Asana/Test/MockRequest.php | <?php
namespace Asana\Test;
use Httpful;
use Httpful\Request;
use Httpful\Response;
class MockRequest extends \Httpful\Request
{
public function __construct($dispatcher)
{
\Httpful\Bootstrap::init();
$this->dispatcher = $dispatcher;
}
public function send()
{
return $this->dispatcher->responseForRequest($this);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Test/AsanaTest.php | src/Asana/Test/AsanaTest.php | <?php
namespace Asana\Test {
use Asana\Client;
use Asana\Test\MockDispatcher;
class AsanaTest extends \PHPUnit\Framework\TestCase
{
protected $client;
protected function setUp(): void
{
global $sleepCalls;
$this->dispatcher = new MockDispatcher();
$this->client = new Client($this->dispatcher);
$this->client->options['base_url'] = '';
$sleepCalls = array();
}
}
}
// This is hacky way of mocking "sleep", since it's called within the Asana namespace we can redefine it.
namespace Asana {
function sleep($time)
{
global $sleepCalls;
$sleepCalls[] = $time;
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Dispatcher/OAuthDispatcher.php | src/Asana/Dispatcher/OAuthDispatcher.php | <?php
namespace Asana\Dispatcher;
use OAuth2;
class OAuthDispatcher extends Dispatcher
{
const NATIVE_REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob';
public static $AUTHORIZATION_ENDPOINT = 'https://app.asana.com/-/oauth_authorize';
public static $TOKEN_ENDPOINT = 'https://app.asana.com/-/oauth_token';
private $expirationTimeSeconds = null;
public function __construct($options)
{
parent::__construct();
$this->clientId = $options['client_id'];
$this->clientSecret = isset($options['client_secret']) ? $options['client_secret'] : null;
$this->accessToken = isset($options['token']) ? $options['token'] : null;
$this->authorized = !!$this->accessToken;
$this->redirectUri = isset($options['redirect_uri']) ? $options['redirect_uri'] : null;
$this->refreshToken = isset($options['refresh_token']) ? $options['refresh_token'] : null;
$this->oauthClient = new OAuth2\Client($this->clientId, $this->clientSecret);
}
public function authorizationUrl(&$state = null)
{
if ($state === null) {
$state = rand();
}
return $this->oauthClient->getAuthenticationUrl(
OAuthDispatcher::$AUTHORIZATION_ENDPOINT,
$this->redirectUri,
array('state' => $state)
);
}
public function fetchToken($code)
{
$params = array('code' => $code, 'redirect_uri' => $this->redirectUri);
$result = $this->oauthClient->getAccessToken(OAuthDispatcher::$TOKEN_ENDPOINT, 'authorization_code', $params);
$this->accessToken = $result['result']['access_token'];
$this->refreshToken = $result['result']['refresh_token'];
$this->expiresIn = $result['result']['expires_in'];
$this->authorized = !!$this->accessToken;
return $this->accessToken;
}
public function refreshAccessToken()
{
if ($this->refreshToken == null) {
throw new \Exception("OAuthDispatcher: cannot refresh access token without a refresh token.");
} else {
$params = array('refresh_token' => $this->refreshToken, 'redirect_uri' => $this->redirectUri);
$result = $this->oauthClient->getAccessToken(OAuthDispatcher::$TOKEN_ENDPOINT, 'refresh_token', $params);
$this->accessToken = $result['result']['access_token'];
$this->expiresIn = $result['result']['expires_in'];
return $this->accessToken;
}
}
public function setExpiresInSeconds($expiresIn)
{
$this->expirationTimeSeconds = time() + $expiresIn;
}
public function getExpiresInSeconds()
{
if ($this->expirationTimeSeconds == null) {
return null;
} else {
return $this->expirationTimeSeconds - time();
}
}
protected function authenticate($request)
{
$expiresIn = $this->getExpiresInSeconds();
if ($expiresIn != null && $expiresIn < 60) {
$this->refreshAccessToken();
}
if ($this->accessToken == null) {
throw new \Exception("OAuthDispatcher: access token not set");
}
return $request->addHeader("Authorization", "Bearer " . $this->accessToken);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Dispatcher/AccessTokenDispatcher.php | src/Asana/Dispatcher/AccessTokenDispatcher.php | <?php
namespace Asana\Dispatcher;
class AccessTokenDispatcher extends Dispatcher
{
public function __construct($accessToken)
{
parent::__construct();
$this->accessToken = $accessToken;
}
protected function authenticate($request)
{
if ($this->accessToken == null) {
throw new \Exception("AccessTokenDispatcher: access token not set");
}
return $request->addHeader("Authorization", "Bearer " . $this->accessToken);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Dispatcher/Dispatcher.php | src/Asana/Dispatcher/Dispatcher.php | <?php
namespace Asana\Dispatcher;
use \Httpful;
use \Httpful\Mime;
class Dispatcher
{
public function __construct()
{
// All of Asana's IDs are int64. If the current build of PHP does not
// support integers that large, we specify that integers that are too
// large should be represented as strings instead. Otherwise PHP would
// convert them to floats.
// Note that Httpful's JsonHandler does not support that option which
// is why we have to register our own JSON handler.
if (PHP_INT_SIZE < 8) {
\Httpful\Httpful::register(
\Httpful\Mime::JSON,
new \Asana\Dispatcher\Handlers\JsonHandler(array('parse_options' => JSON_BIGINT_AS_STRING))
);
}
}
public function request($method, $uri, $requestOptions)
{
if (isset($requestOptions['params'])) {
$qs = http_build_query($requestOptions['params']);
if (strlen($qs) > 0) {
$uri .= "?" . $qs;
}
}
$request = $this->createRequest()
->method($method)
->uri($uri)
->expectsJson();
if (isset($requestOptions['curl'])) {
foreach ($requestOptions['curl'] as $curlopt => $curlval) {
$request->addOnCurlOption($curlopt, $curlval);
}
}
if (isset($requestOptions['headers'])) {
$request->addHeaders($requestOptions['headers']);
}
$request->addHeaders($this->versionHeader());
if (isset($requestOptions['data'])) {
$request->sendsJson()->body($requestOptions['data']);
}
$tmpFiles = array();
if (isset($requestOptions['files'])) {
foreach ($requestOptions['files'] as $name => $file) {
$tmpFilePath = tempnam(null, null);
$tmpFiles[] = $tmpFilePath;
file_put_contents($tmpFilePath, $file[0]);
// If the user's PHP version supports curl_file_create, use it.
if (function_exists('curl_file_create')) {
if ((isset($file[1]) && $file[1] != null)) {
$mimetype = '';
if ((isset($file[2]) && $file[2] != null)) {
$mimetype = $file[2];
}
$body[$name] = curl_file_create($tmpFilePath, $mimetype, $file[1]);
}
} else { // Otherwise we can still use the '@' notation.
$body[$name] = '@' . $tmpFilePath;
if (isset($file[1]) && $file[1] != null) {
$body[$name] .= ';filename=' . $file[1];
}
if (isset($file[2]) && $file[2] != null) {
$body[$name] .= ';type=' . $file[2];
}
}
}
$request->body($body)->sendsType(\Httpful\Mime::UPLOAD);
}
$this->authenticate($request);
try {
$result = $request->send();
foreach ($tmpFiles as $tmpFilePath) {
unlink($tmpFilePath);
}
} catch (Exception $e) {
// fake "finally"
foreach ($tmpFiles as $tmpFilePath) {
unlink($tmpFilePath);
}
throw $e;
}
return $result;
}
protected function createRequest()
{
return \Httpful\Request::init();
}
protected function authenticate($request)
{
return $request;
}
private function getClientVersion()
{
$version_file = dirname(__FILE__) . "/../../../VERSION";
$version_info = file_get_contents($version_file) ?: "0.0.0";
return str_replace(array("\r", "\n"), "", $version_info);
}
private function versionHeader()
{
$posix_available = function_exists('posix_uname');
$sys_info = $posix_available ? posix_uname() : null;
$client_info = array(
'version' => $this->getClientVersion(),
'language' => 'PHP',
'language_version' => phpversion(),
'os' => $posix_available ? $sys_info['sysname'] : php_uname('s'),
'os_version' => $posix_available ? $sys_info['release'] : php_uname('r')
);
return array(
'X-Asana-Client-Lib' => http_build_query($client_info)
);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Dispatcher/Handlers/JsonHandler.php | src/Asana/Dispatcher/Handlers/JsonHandler.php | <?php
/**
* Based on \Httpful\Handlers\JsonHandler
* and https://github.com/nategood/httpful/pull/189.
*
* Mime Type: application/json
*/
namespace Asana\Dispatcher\Handlers;
use Httpful\Handlers\MimeHandlerAdapter;
class JsonHandler extends MimeHandlerAdapter
{
private $decode_as_array = false;
private $depth = 512;
private $parse_options = 0;
public function init(array $args)
{
$this->decode_as_array = !!(array_key_exists('decode_as_array', $args) ? $args['decode_as_array'] : false);
$this->depth = (array_key_exists('depth', $args) ? $args['depth'] : 512);
$this->parse_options = (array_key_exists('parse_options', $args) ? $args['parse_options'] : 0);
}
/**
* @param string $body
* @return mixed
*/
public function parse($body)
{
$body = $this->stripBom($body);
if (empty($body)) {
return null;
}
$parsed = json_decode($body, $this->decode_as_array, $this->depth, $this->parse_options);
if (is_null($parsed) && 'null' !== strtolower($body)) {
throw new \Exception("Unable to parse response as JSON");
}
return $parsed;
}
/**
* @param mixed $payload
* @return string
*/
public function serialize($payload)
{
return json_encode($payload);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Webhooks.php | src/Asana/Resources/Webhooks.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\WebhooksBase;
class Webhooks extends WebhooksBase
{
/**
* Establishing a webhook is a two-part process. First, a simple HTTP POST
* similar to any other resource creation. Since you could have multiple
* webhooks we recommend specifying a unique local id for each target.
*
* Next comes the confirmation handshake. When a webhook is created, we will
* send a test POST to the `target` with an `X-Hook-Secret` header as
* described in the
* [Resthooks Security documentation](http://resthooks.org/docs/security/).
* The target must respond with a `200 OK` and a matching `X-Hook-Secret`
* header to confirm that this webhook subscription is indeed expected.
*
* If you do not acknowledge the webhook's confirmation handshake it will
* fail to setup, and you will receive an error in response to your attempt
* to create it. This means you need to be able to receive and complete the
* webhook *while* the POST request is in-flight.
*
* @deprecated replace with createWebhook
*
* @return response
*/
public function create($params = array(), $options = array())
{
return $this->client->post("/webhooks", $params, $options);
}
/**
* Returns the compact representation of all webhooks your app has
* registered for the authenticated user in the given workspace.
*
* @deprecated replace with getWebhooks
*
* @return response
*/
public function getAll($params = array(), $options = array())
{
return $this->client->getCollection("/webhooks", $params, $options);
}
/**
* Returns the full record for the given webhook.
*
* @deprecated replace with getWebhook
*
* @param webhook The webhook to get.
* @return response
*/
public function getById($webhook, $params = array(), $options = array())
{
$path = sprintf("/webhooks/%s", $webhook);
return $this->client->get($path, $params, $options);
}
/**
* This method permanently removes a webhook. Note that it may be possible
* to receive a request that was already in flight after deleting the
* webhook, but no further requests will be issued.
*
* @deprecated replace with deleteWebhook
*
* @param webhook The webhook to delete.
* @return response
*/
public function deleteById($webhook, $params = array(), $options = array())
{
$path = sprintf("/webhooks/%s", $webhook);
return $this->client->delete($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/AuditLogAPI.php | src/Asana/Resources/AuditLogAPI.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\AuditLogAPIBase;
class AuditLogAPI extends AuditLogAPIBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Users.php | src/Asana/Resources/Users.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\UsersBase;
class Users extends UsersBase
{
/**
* Returns the full user record for the currently authenticated user.
*
* @return response
*/
public function me($params = array(), $options = array())
{
return $this->client->get("/users/me", $params, $options);
}
/**
* Returns the full user record for the single user with the provided ID.
*
* @deprecated replace with getUser
*
* @param user An identifier for the user. Can be one of an email address,
* the globally unique identifier for the user, or the keyword `me`
* to indicate the current user making the request.
* @return response
*/
public function findById($user, $params = array(), $options = array())
{
$path = sprintf("/users/%s", $user);
return $this->client->get($path, $params, $options);
}
/**
* Returns all of a user's favorites in the given workspace, of the given type.
* Results are given in order (The same order as Asana's sidebar).
*
* @deprecated replace with getFavoritesForUser
*
* @param user An identifier for the user. Can be one of an email address,
* the globally unique identifier for the user, or the keyword `me`
* to indicate the current user making the request.
* @return response
*/
public function getUserFavorites($user, $params = array(), $options = array())
{
$path = sprintf("/users/%s/favorites", $user);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the user records for all users in the specified workspace or
* organization.
*
* @deprecated replace with getUsersForWorkspace
*
* @param workspace The workspace in which to get users.
* @return response
*/
public function findByWorkspace($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/users", $workspace);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the user records for all users in all workspaces and organizations
* accessible to the authenticated user. Accepts an optional workspace ID
* parameter.
*
* @deprecated replace with getUsers
*
* @return response
*/
public function findAll($params = array(), $options = array())
{
return $this->client->getCollection("/users", $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Events.php | src/Asana/Resources/Events.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\EventsBase;
use Asana\Iterator\EventsPageIterator;
class Events extends EventsBase
{
/**
* @deprecated replace with getEvents and include {"full_payload" = true} as an option
*/
public function get($query = array(), $options = array())
{
$options['full_payload'] = true;
return $this->client->get('/events', $query, $options);
}
public function getNext($query = array(), $options = array())
{
$iterator = new EventsPageIterator($this->client, '/events', $query, $options);
$iterator->rewind();
return array($iterator->current(), $iterator->continuation);
}
public function getIterator($query = array(), $options = array())
{
$iterator = new EventsPageIterator($this->client, '/events', $query, $options);
return $iterator->items();
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Goals.php | src/Asana/Resources/Goals.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\GoalsBase;
class Goals extends GoalsBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Tags.php | src/Asana/Resources/Tags.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\TagsBase;
class Tags extends TagsBase
{
/**
* Returns the compact task records for all tasks with the given tag.
* Tasks can have more than one tag at a time.
*
* @deprecated replace with Tasks.getTasksForTag
*
* @param tag The tag to fetch tasks from.
* @return response
*/
public function getTasksWithTag($tag, $params = array(), $options = array())
{
$path = sprintf("/tags/%s/tasks", $tag);
return $this->client->getCollection($path, $params, $options);
}
/**
* Creates a new tag in a workspace or organization.
*
* Every tag is required to be created in a specific workspace or
* organization, and this cannot be changed once set. Note that you can use
* the `workspace` parameter regardless of whether or not it is an
* organization.
*
* Returns the full record of the newly created tag.
*
* @deprecated replace with createTag
*
* @return response
*/
public function create($params = array(), $options = array())
{
return $this->client->post("/tags", $params, $options);
}
/**
* Creates a new tag in a workspace or organization.
*
* Every tag is required to be created in a specific workspace or
* organization, and this cannot be changed once set. Note that you can use
* the `workspace` parameter regardless of whether or not it is an
* organization.
*
* Returns the full record of the newly created tag.
*
* @deprecated replace with createTagForWorkspace
*
* @param workspace The workspace or organization to create the tag in.
* @return response
*/
public function createInWorkspace($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/tags", $workspace);
return $this->client->post($path, $params, $options);
}
/**
* Returns the complete tag record for a single tag.
*
* @deprecated replace with getTag
*
* @param tag The tag to get.
* @return response
*/
public function findById($tag, $params = array(), $options = array())
{
$path = sprintf("/tags/%s", $tag);
return $this->client->get($path, $params, $options);
}
/**
* Updates the properties of a tag. Only the fields provided in the `data`
* block will be updated; any unspecified fields will remain unchanged.
*
* When using this method, it is best to specify only those fields you wish
* to change, or else you may overwrite changes made by another user since
* you last retrieved the task.
*
* Returns the complete updated tag record.
*
* @deprecated replace with updateTag
*
* @param tag The tag to update.
* @return response
*/
public function update($tag, $params = array(), $options = array())
{
$path = sprintf("/tags/%s", $tag);
return $this->client->put($path, $params, $options);
}
/**
* A specific, existing tag can be deleted by making a DELETE request
* on the URL for that tag.
*
* Returns an empty data record.
*
* @deprecated replace with deleteTag
*
* @param tag The tag to delete.
* @return response
*/
public function delete($tag, $params = array(), $options = array())
{
$path = sprintf("/tags/%s", $tag);
return $this->client->delete($path, $params, $options);
}
/**
* Returns the compact tag records for some filtered set of tags.
* Use one or more of the parameters provided to filter the tags returned.
*
* @deprecated replace with getTags
*
* @return response
*/
public function findAll($params = array(), $options = array())
{
return $this->client->getCollection("/tags", $params, $options);
}
/**
* Returns the compact tag records for all tags in the workspace.
*
* @deprecated replace with getTagsForWorkspace
*
* @param workspace The workspace or organization to find tags in.
* @return response
*/
public function findByWorkspace($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/tags", $workspace);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Stories.php | src/Asana/Resources/Stories.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\StoriesBase;
class Stories extends StoriesBase
{
/**
* Returns the compact records for all stories on the task.
*
* @deprecated replace with getStoriesForTask
*
* @param task Globally unique identifier for the task.
* @return response
*/
public function findByTask($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/stories", $task);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the full record for a single story.
*
* @deprecated replace with getStory
*
* @param story Globally unique identifier for the story.
* @return response
*/
public function findById($story, $params = array(), $options = array())
{
$path = sprintf("/stories/%s", $story);
return $this->client->get($path, $params, $options);
}
/**
* Adds a comment to a task. The comment will be authored by the
* currently authenticated user, and timestamped when the server receives
* the request.
*
* Returns the full record for the new story added to the task.
*
* @deprecated replace with createStoryForTask
*
* @param task Globally unique identifier for the task.
* @return response
*/
public function createOnTask($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/stories", $task);
return $this->client->post($path, $params, $options);
}
/**
* Updates the story and returns the full record for the updated story.
* Only comment stories can have their text updated, and only comment stories and
* attachment stories can be pinned. Only one of `text` and `html_text` can be specified.
*
* @deprecated replace with updateStory
*
* @param story Globally unique identifier for the story.
* @return response
*/
public function update($story, $params = array(), $options = array())
{
$path = sprintf("/stories/%s", $story);
return $this->client->put($path, $params, $options);
}
/**
* Deletes a story. A user can only delete stories they have created. Returns an empty data record.
*
* @deprecated replace with deleteStory
*
* @param story Globally unique identifier for the story.
* @return response
*/
public function delete($story, $params = array(), $options = array())
{
$path = sprintf("/stories/%s", $story);
return $this->client->delete($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Teams.php | src/Asana/Resources/Teams.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\TeamsBase;
class Teams extends TeamsBase
{
/**
* Returns the full record for a single team.
*
* @deprecated replace with getTeam
*
* @param team Globally unique identifier for the team.
* @return response
*/
public function findById($team, $params = array(), $options = array())
{
$path = sprintf("/teams/%s", $team);
return $this->client->get($path, $params, $options);
}
/**
* Returns the compact records for all teams in the organization visible to
* the authorized user.
*
* @deprecated replace with getTeamsForOrganization
*
* @param organization Globally unique identifier for the workspace or organization.
* @return response
*/
public function findByOrganization($organization, $params = array(), $options = array())
{
$path = sprintf("/organizations/%s/teams", $organization);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the compact records for all teams to which user is assigned.
*
* @deprecated replace with getTeamsForUser
*
* @param user An identifier for the user. Can be one of an email address,
* the globally unique identifier for the user, or the keyword `me`
* to indicate the current user making the request.
* @return response
*/
public function findByUser($user, $params = array(), $options = array())
{
$path = sprintf("/users/%s/teams", $user);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the compact records for all users that are members of the team.
*
* @deprecated replace with Users.getUsersForTeam
*
* @param team Globally unique identifier for the team.
* @return response
*/
public function users($team, $params = array(), $options = array())
{
$path = sprintf("/teams/%s/users", $team);
return $this->client->getCollection($path, $params, $options);
}
/**
* The user making this call must be a member of the team in order to add others.
* The user to add must exist in the same organization as the team in order to be added.
* The user to add can be referenced by their globally unique user ID or their email address.
* Returns the full user record for the added user.
*
* @deprecated replace with addUserForTeam
*
* @param team Globally unique identifier for the team.
* @return response
*/
public function addUser($team, $params = array(), $options = array())
{
$path = sprintf("/teams/%s/addUser", $team);
return $this->client->post($path, $params, $options);
}
/**
* The user to remove can be referenced by their globally unique user ID or their email address.
* Removes the user from the specified team. Returns an empty data record.
*
* @deprecated replace with removeUserForTeam
*
* @param team Globally unique identifier for the team.
* @return response
*/
public function removeUser($team, $params = array(), $options = array())
{
$path = sprintf("/teams/%s/removeUser", $team);
return $this->client->post($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/ProjectBriefs.php | src/Asana/Resources/ProjectBriefs.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\ProjectBriefsBase;
class ProjectBriefs extends ProjectBriefsBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/GoalRelationships.php | src/Asana/Resources/GoalRelationships.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\GoalRelationshipsBase;
class GoalRelationships extends GoalRelationshipsBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Portfolios.php | src/Asana/Resources/Portfolios.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\PortfoliosBase;
class Portfolios extends PortfoliosBase
{
/**
* Creates a new portfolio in the given workspace with the supplied name.
*
* Note that portfolios created in the Asana UI may have some state
* (like the "Priority" custom field) which is automatically added to the
* portfolio when it is created. Portfolios created via our API will **not**
* be created with the same initial state to allow integrations to create
* their own starting state on a portfolio.
*
* @deprecated replace with createPortfolio
*
* @return response
*/
public function create($params = array(), $options = array())
{
return $this->client->post("/portfolios", $params, $options);
}
/**
* Returns the complete record for a single portfolio.
*
* @deprecated replace with getPortfolio
*
* @param portfolio The portfolio to get.
* @return response
*/
public function findById($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s", $portfolio);
return $this->client->get($path, $params, $options);
}
/**
* An existing portfolio can be updated by making a PUT request on the
* URL for that portfolio. Only the fields provided in the `data` block will be
* updated; any unspecified fields will remain unchanged.
*
* Returns the complete updated portfolio record.
*
* @deprecated replace with updatePortfolio
*
* @param portfolio The portfolio to update.
* @return response
*/
public function update($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s", $portfolio);
return $this->client->put($path, $params, $options);
}
/**
* An existing portfolio can be deleted by making a DELETE request
* on the URL for that portfolio.
*
* Returns an empty data record.
*
* @deprecated replace with deletePortfolio
*
* @param portfolio The portfolio to delete.
* @return response
*/
public function delete($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s", $portfolio);
return $this->client->delete($path, $params, $options);
}
/**
* Returns a list of the portfolios in compact representation that are owned
* by the current API user.
*
* @deprecated replace with getPortfolios
*
* @return response
*/
public function findAll($params = array(), $options = array())
{
return $this->client->getCollection("/portfolios", $params, $options);
}
/**
* Get a list of the items in compact form in a portfolio.
*
* @deprecated replace with getItemsForPortfolio
*
* @param portfolio The portfolio from which to get the list of items.
* @return response
*/
public function getItems($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s/items", $portfolio);
return $this->client->getCollection($path, $params, $options);
}
/**
* Add an item to a portfolio.
*
* Returns an empty data block.
*
* @deprecated replace with addItemForPortfolio
*
* @param portfolio The portfolio to which to add an item.
* @return response
*/
public function addItem($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s/addItem", $portfolio);
return $this->client->post($path, $params, $options);
}
/**
* Remove an item to a portfolio.
*
* Returns an empty data block.
*
* @deprecated replace with removeItemForPortfolio
*
* @param portfolio The portfolio from which to remove the item.
* @return response
*/
public function removeItem($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s/removeItem", $portfolio);
return $this->client->post($path, $params, $options);
}
/**
* Adds the specified list of users as members of the portfolio. Returns the updated portfolio record.
*
* @deprecated replace with addMembersForPortfolio
*
* @param portfolio The portfolio to add members to.
* @return response
*/
public function addMembers($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s/addMembers", $portfolio);
return $this->client->post($path, $params, $options);
}
/**
* Removes the specified list of members from the portfolio. Returns the updated portfolio record.
*
* @deprecated replace with removeMembersForPortfolio
*
* @param portfolio The portfolio to remove members from.
* @return response
*/
public function removeMembers($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s/removeMembers", $portfolio);
return $this->client->post($path, $params, $options);
}
/**
* Get the custom field settings on a portfolio.
*
* @deprecated replace with CustomFields.getCustomFieldSettingsForPortfolio
*
* @param portfolio The portfolio from which to get the custom field settings.
* @return response
*/
public function customFieldSettings($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s/custom_field_settings", $portfolio);
return $this->client->getCollection($path, $params, $options);
}
/**
* Create a new custom field setting on the portfolio. Returns the full
* record for the new custom field setting.
*
* @deprecated replace with addCustomFieldSettingForPortfolio
*
* @param portfolio The portfolio onto which to add the custom field.
* @return response
*/
public function addCustomFieldSetting($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s/addCustomFieldSetting", $portfolio);
return $this->client->post($path, $params, $options);
}
/**
* Remove a custom field setting on the portfolio. Returns an empty data
* block.
*
* @deprecated replace with removeCustomFieldSettingForPortfolio
*
* @param portfolio The portfolio from which to remove the custom field.
* @return response
*/
public function removeCustomFieldSetting($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s/removeCustomFieldSetting", $portfolio);
return $this->client->post($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/ProjectStatuses.php | src/Asana/Resources/ProjectStatuses.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\ProjectStatusesBase;
class ProjectStatuses extends ProjectStatusesBase
{
public function create($project, $params = array(), $options = array())
{
return $this->createInProject($project, $params, $options);
}
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/**
* Creates a new status update on the project.
*
* Returns the full record of the newly created project status update.
*
* @deprecated replace with createProjectStatusForProject
*
* @param project The project on which to create a status update.
* @return response
*/
public function createInProject($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/project_statuses", $project);
return $this->client->post($path, $params, $options);
}
/**
* Returns the compact project status update records for all updates on the project.
*
* @deprecated replace with getProjectStatusesForProject
*
* @param project The project to find status updates for.
* @return response
*/
public function findByProject($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/project_statuses", $project);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the complete record for a single status update.
*
* @deprecated replace with getProjectStatus
*
* @param project-status The project status update to get.
* @return response
*/
public function findById($projectStatus, $params = array(), $options = array())
{
$path = sprintf("/project_statuses/%s", $projectStatus);
return $this->client->get($path, $params, $options);
}
/**
* Deletes a specific, existing project status update.
*
* Returns an empty data record.
*
* @deprecated replace with deleteProjectStatus
*
* @param project-status The project status update to delete.
* @return response
*/
public function delete($projectStatus, $params = array(), $options = array())
{
$path = sprintf("/project_statuses/%s", $projectStatus);
return $this->client->delete($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Sections.php | src/Asana/Resources/Sections.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\SectionsBase;
class Sections extends SectionsBase
{
/**
* Creates a new section in a project.
*
* Returns the full record of the newly created section.
*
* @deprecated replace with createSectionForProject
*
* @param project The project to create the section in
* @return response
*/
public function createInProject($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/sections", $project);
return $this->client->post($path, $params, $options);
}
/**
* Returns the compact records for all sections in the specified project.
*
* @deprecated replace with getSectionsForProject
*
* @param project The project to get sections from.
* @return response
*/
public function findByProject($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/sections", $project);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the complete record for a single section.
*
* @deprecated replace with getSection
*
* @param section The section to get.
* @return response
*/
public function findById($section, $params = array(), $options = array())
{
$path = sprintf("/sections/%s", $section);
return $this->client->get($path, $params, $options);
}
/**
* A specific, existing section can be updated by making a PUT request on
* the URL for that project. Only the fields provided in the `data` block
* will be updated; any unspecified fields will remain unchanged. (note that
* at this time, the only field that can be updated is the `name` field.)
*
* When using this method, it is best to specify only those fields you wish
* to change, or else you may overwrite changes made by another user since
* you last retrieved the task.
*
* Returns the complete updated section record.
*
* @deprecated replace with updateSection
*
* @param section The section to update.
* @return response
*/
public function update($section, $params = array(), $options = array())
{
$path = sprintf("/sections/%s", $section);
return $this->client->put($path, $params, $options);
}
/**
* A specific, existing section can be deleted by making a DELETE request
* on the URL for that section.
*
* Note that sections must be empty to be deleted.
*
* The last remaining section in a board view cannot be deleted.
*
* Returns an empty data block.
*
* @deprecated replace with deleteSection
*
* @param section The section to delete.
* @return response
*/
public function delete($section, $params = array(), $options = array())
{
$path = sprintf("/sections/%s", $section);
return $this->client->delete($path, $params, $options);
}
/**
* Add a task to a specific, existing section. This will remove the task from other sections of the project.
*
* The task will be inserted at the top of a section unless an `insert_before` or `insert_after` parameter is declared.
*
* This does not work for separators (tasks with the `resource_subtype` of section).
*
* @deprecated replace with addTaskForSection
*
* @param task The task to add to this section
* @return response
*/
public function addTask($task, $params = array(), $options = array())
{
$path = sprintf("/sections/%s/addTask", $task);
return $this->client->post($path, $params, $options);
}
/**
* Move sections relative to each other in a board view. One of
* `before_section` or `after_section` is required.
*
* Sections cannot be moved between projects.
*
* At this point in time, moving sections is not supported in list views, only board views.
*
* Returns an empty data block.
*
* @deprecated replace with insertSectionForProject
*
* @param project The project in which to reorder the given section
* @return response
*/
public function insertInProject($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/sections/insert", $project);
return $this->client->post($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/TimePeriods.php | src/Asana/Resources/TimePeriods.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\TimePeriodsBase;
class TimePeriods extends TimePeriodsBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Tasks.php | src/Asana/Resources/Tasks.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\TasksBase;
class Tasks extends TasksBase
{
public function search($workspace, $params = array(), $options = array())
{
return $this->searchInWorkspace($workspace, $params, $options);
}
/**
* Creating a new task is as easy as POSTing to the `/tasks` endpoint
* with a data block containing the fields you'd like to set on the task.
* Any unspecified fields will take on default values.
*
* Every task is required to be created in a specific workspace, and this
* workspace cannot be changed once set. The workspace need not be set
* explicitly if you specify `projects` or a `parent` task instead.
*
* `projects` can be a comma separated list of projects, or just a single
* project the task should belong to.
*
* @deprecated replace with createTask
*
* @return response
*/
public function create($params = array(), $options = array())
{
return $this->client->post("/tasks", $params, $options);
}
/**
* Creating a new task is as easy as POSTing to the `/tasks` endpoint
* with a data block containing the fields you'd like to set on the task.
* Any unspecified fields will take on default values.
*
* Every task is required to be created in a specific workspace, and this
* workspace cannot be changed once set. The workspace need not be set
* explicitly if you specify a `project` or a `parent` task instead.
*
* @deprecated replace with createTaskForWorkspace
*
* @param workspace The workspace to create a task in.
* @return response
*/
public function createInWorkspace($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/tasks", $workspace);
return $this->client->post($path, $params, $options);
}
/**
* Returns the complete task record for a single task.
*
* @deprecated replace with getTask
*
* @param task The task to get.
* @return response
*/
public function findById($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s", $task);
return $this->client->get($path, $params, $options);
}
/**
* A specific, existing task can be updated by making a PUT request on the
* URL for that task. Only the fields provided in the `data` block will be
* updated; any unspecified fields will remain unchanged.
*
* When using this method, it is best to specify only those fields you wish
* to change, or else you may overwrite changes made by another user since
* you last retrieved the task.
*
* Returns the complete updated task record.
*
* @deprecated replace with updateTask
*
* @param task The task to update.
* @return response
*/
public function update($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s", $task);
return $this->client->put($path, $params, $options);
}
/**
* A specific, existing task can be deleted by making a DELETE request on the
* URL for that task. Deleted tasks go into the "trash" of the user making
* the delete request. Tasks can be recovered from the trash within a period
* of 30 days; afterward they are completely removed from the system.
*
* Returns an empty data record.
*
* @deprecated replace with deleteTask
*
* @param task The task to delete.
* @return response
*/
public function delete($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s", $task);
return $this->client->delete($path, $params, $options);
}
/**
* Returns the compact task records for all tasks within the given project,
* ordered by their priority within the project.
*
* @deprecated replace with getTasksForProject
*
* @param project The project in which to search for tasks.
* @return response
*/
public function findByProject($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/tasks", $project);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the compact task records for all tasks with the given tag.
*
* @deprecated replace with getTasksForTag
*
* @param tag The tag in which to search for tasks.
* @return response
*/
public function findByTag($tag, $params = array(), $options = array())
{
$path = sprintf("/tags/%s/tasks", $tag);
return $this->client->getCollection($path, $params, $options);
}
/**
* <b>Board view only:</b> Returns the compact section records for all tasks within the given section.
*
* @deprecated replace with getTasksForSection
*
* @param section The section in which to search for tasks.
* @return response
*/
public function findBySection($section, $params = array(), $options = array())
{
$path = sprintf("/sections/%s/tasks", $section);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the compact list of tasks in a user's My Tasks list. The returned
* tasks will be in order within each assignee status group of `Inbox`,
* `Today`, and `Upcoming`.
*
* **Note:** tasks in `Later` have a different ordering in the Asana web app
* than the other assignee status groups; this endpoint will still return
* them in list order in `Later` (differently than they show up in Asana,
* but the same order as in Asana's mobile apps).
*
* **Note:** Access control is enforced for this endpoint as with all Asana
* API endpoints, meaning a user's private tasks will be filtered out if the
* API-authenticated user does not have access to them.
*
* **Note:** Both complete and incomplete tasks are returned by default
* unless they are filtered out (for example, setting `completed_since=now`
* will return only incomplete tasks, which is the default view for "My
* Tasks" in Asana.)
*
* @deprecated replace with getTasksForUserTaskList
*
* @param user_task_list The user task list in which to search for tasks.
* @return response
*/
public function findByUserTaskList($userTaskList, $params = array(), $options = array())
{
$path = sprintf("/user_task_lists/%s/tasks", $userTaskList);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the compact task records for some filtered set of tasks. Use one
* or more of the parameters provided to filter the tasks returned. You must
* specify a `project`, `section`, `tag`, or `user_task_list` if you do not
* specify `assignee` and `workspace`.
*
* @deprecated replace with getTasks
*
* @return response
*/
public function findAll($params = array(), $options = array())
{
return $this->client->getCollection("/tasks", $params, $options);
}
/**
* The search endpoint allows you to build complex queries to find and fetch exactly the data you need from Asana. For a more comprehensive description of all the query parameters and limitations of this endpoint, see our [long-form documentation](/developers/documentation/getting-started/search-api) for this feature.
*
* @deprecated replace with searchTasksForWorkspace
*
* @param workspace The workspace or organization in which to search for tasks.
* @return response
*/
public function searchInWorkspace($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/tasks/search", $workspace);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the compact representations of all of the dependencies of a task.
*
* @deprecated replace with getDependenciesForTask
*
* @param task The task to get dependencies on.
* @return response
*/
public function dependencies($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/dependencies", $task);
return $this->client->get($path, $params, $options);
}
/**
* Returns the compact representations of all of the dependents of a task.
*
* @deprecated replace with getDependentsForTask
*
* @param task The task to get dependents on.
* @return response
*/
public function dependents($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/dependents", $task);
return $this->client->get($path, $params, $options);
}
/**
* Marks a set of tasks as dependencies of this task, if they are not
* already dependencies. *A task can have at most 15 dependencies.*
*
* @deprecated replace with addDependenciesForTask
*
* @param task The task to add dependencies to.
* @return response
*/
public function addDependencies($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/addDependencies", $task);
return $this->client->post($path, $params, $options);
}
/**
* Marks a set of tasks as dependents of this task, if they are not already
* dependents. *A task can have at most 30 dependents.*
*
* @deprecated replace with addDependentsForTask
*
* @param task The task to add dependents to.
* @return response
*/
public function addDependents($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/addDependents", $task);
return $this->client->post($path, $params, $options);
}
/**
* Unlinks a set of dependencies from this task.
*
* @deprecated replace with removeDependenciesForTask
*
* @param task The task to remove dependencies from.
* @return response
*/
public function removeDependencies($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/removeDependencies", $task);
return $this->client->post($path, $params, $options);
}
/**
* Unlinks a set of dependents from this task.
*
* @deprecated replace with removeDependentsForTask
*
* @param task The task to remove dependents from.
* @return response
*/
public function removeDependents($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/removeDependents", $task);
return $this->client->post($path, $params, $options);
}
/**
* Adds each of the specified followers to the task, if they are not already
* following. Returns the complete, updated record for the affected task.
*
* @deprecated replace with addFollowersForTask
*
* @param task The task to add followers to.
* @return response
*/
public function addFollowers($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/addFollowers", $task);
return $this->client->post($path, $params, $options);
}
/**
* Removes each of the specified followers from the task if they are
* following. Returns the complete, updated record for the affected task.
*
* @deprecated replace with removeFollowersForTask
*
* @param task The task to remove followers from.
* @return response
*/
public function removeFollowers($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/removeFollowers", $task);
return $this->client->post($path, $params, $options);
}
/**
* Returns a compact representation of all of the projects the task is in.
*
* @deprecated replace with Tasks.getProjectsForTask
*
* @param task The task to get projects on.
* @return response
*/
public function projects($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/projects", $task);
return $this->client->getCollection($path, $params, $options);
}
/**
* Adds the task to the specified project, in the optional location
* specified. If no location arguments are given, the task will be added to
* the end of the project.
*
* `addProject` can also be used to reorder a task within a project or section that
* already contains it.
*
* At most one of `insert_before`, `insert_after`, or `section` should be
* specified. Inserting into a section in an non-order-dependent way can be
* done by specifying `section`, otherwise, to insert within a section in a
* particular place, specify `insert_before` or `insert_after` and a task
* within the section to anchor the position of this task.
*
* Returns an empty data block.
*
* @deprecated replace with addProjectForTask
*
* @param task The task to add to a project.
* @return response
*/
public function addProject($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/addProject", $task);
return $this->client->post($path, $params, $options);
}
/**
* Removes the task from the specified project. The task will still exist
* in the system, but it will not be in the project anymore.
*
* Returns an empty data block.
*
* @deprecated replace with removeProjectForTask
*
* @param task The task to remove from a project.
* @return response
*/
public function removeProject($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/removeProject", $task);
return $this->client->post($path, $params, $options);
}
/**
* Returns a compact representation of all of the tags the task has.
*
* @deprecated replace with Tags.getTagsForTask
*
* @param task The task to get tags on.
* @return response
*/
public function tags($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/tags", $task);
return $this->client->getCollection($path, $params, $options);
}
/**
* Adds a tag to a task. Returns an empty data block.
*
* @deprecated replace with addTagForTask
*
* @param task The task to add a tag to.
* @return response
*/
public function addTag($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/addTag", $task);
return $this->client->post($path, $params, $options);
}
/**
* Removes a tag from the task. Returns an empty data block.
*
* @deprecated replace with removeTagForTask
*
* @param task The task to remove a tag from.
* @return response
*/
public function removeTag($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/removeTag", $task);
return $this->client->post($path, $params, $options);
}
/**
* Returns a compact representation of all of the subtasks of a task.
*
* @deprecated replace with getSubtasksForTask
*
* @param task The task to get the subtasks of.
* @return response
*/
public function subtasks($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/subtasks", $task);
return $this->client->getCollection($path, $params, $options);
}
/**
* Creates a new subtask and adds it to the parent task. Returns the full record
* for the newly created subtask.
*
* @deprecated replace with createSubtaskForTask
*
* @param task The task to add a subtask to.
* @return response
*/
public function addSubtask($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/subtasks", $task);
return $this->client->post($path, $params, $options);
}
/**
* Returns a compact representation of all of the stories on the task.
*
* @deprecated replace with Stories.createStoryForTask
*
* @param task The task containing the stories to get.
* @return response
*/
public function stories($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/stories", $task);
return $this->client->getCollection($path, $params, $options);
}
/**
* Adds a comment to a task. The comment will be authored by the
* currently authenticated user, and timestamped when the server receives
* the request.
*
* Returns the full record for the new story added to the task.
*
* @deprecated replace with Stories.createStoryForTask
*
* @param task Globally unique identifier for the task.
* @return response
*/
public function addComment($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/stories", $task);
return $this->client->post($path, $params, $options);
}
/**
* Insert or reorder tasks in a user's My Tasks list. If the task was not
* assigned to the owner of the user task list it will be reassigned when
* this endpoint is called. If neither `insert_before` nor `insert_after`
* are provided the task will be inserted at the top of the assignee's
* inbox.
*
* Returns an empty data block.
*
* @param user_task_list Globally unique identifier for the user task list.
* @return response
*/
public function insertInUserTaskList($userTaskList, $params = array(), $options = array())
{
$path = sprintf("/user_task_lists/%s/tasks/insert", $userTaskList);
return $this->client->post($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Typeahead.php | src/Asana/Resources/Typeahead.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\TypeaheadBase;
class Typeahead extends TypeaheadBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Memberships.php | src/Asana/Resources/Memberships.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\MembershipsBase;
class Memberships extends MembershipsBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/WorkspaceMemberships.php | src/Asana/Resources/WorkspaceMemberships.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\WorkspaceMembershipsBase;
class WorkspaceMemberships extends WorkspaceMembershipsBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/StatusUpdates.php | src/Asana/Resources/StatusUpdates.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\StatusUpdatesBase;
class StatusUpdates extends StatusUpdatesBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/OrganizationExports.php | src/Asana/Resources/OrganizationExports.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\OrganizationExportsBase;
class OrganizationExports extends OrganizationExportsBase
{
/**
* Returns details of a previously-requested Organization export.
*
* @deprecated replace with getOrganizationExport
*
* @param organization_export Globally unique identifier for the Organization export.
* @return response
*/
public function findById($organizationExport, $params = array(), $options = array())
{
$path = sprintf("/organization_exports/%s", $organizationExport);
return $this->client->get($path, $params, $options);
}
/**
* This method creates a request to export an Organization. Asana will complete the export at some
* point after you create the request.
*
* @deprecated replace with createOrganizationExport
*
* @return response
*/
public function create($params = array(), $options = array())
{
return $this->client->post("/organization_exports", $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/ProjectMemberships.php | src/Asana/Resources/ProjectMemberships.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\ProjectMembershipsBase;
class ProjectMemberships extends ProjectMembershipsBase
{
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/**
* Returns the compact project membership records for the project.
*
* @deprecated replace with getProjectMembershipsForProject
*
* @param project The project for which to fetch memberships.
* @return response
*/
public function findByProject($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/project_memberships", $project);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the project membership record.
*
* @deprecated replace with getProjectMembership
*
* @param project_membership Globally unique identifier for the project membership.
* @return response
*/
public function findById($projectMembership, $params = array(), $options = array())
{
$path = sprintf("/project_memberships/%s", $projectMembership);
return $this->client->get($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Jobs.php | src/Asana/Resources/Jobs.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\JobsBase;
class Jobs extends JobsBase
{
/**
* Returns the complete job record for a single job.
*
* @deprecated replace with getJob
*
* @param job The job to get.
* @return response
*/
public function findById($job, $params = array(), $options = array())
{
$path = sprintf("/jobs/%s", $job);
return $this->client->get($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Projects.php | src/Asana/Resources/Projects.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\ProjectsBase;
class Projects extends ProjectsBase
{
/**
* Creates a new project in a workspace or team.
*
* Every project is required to be created in a specific workspace or
* organization, and this cannot be changed once set. Note that you can use
* the `workspace` parameter regardless of whether or not it is an
* organization.
*
* If the workspace for your project _is_ an organization, you must also
* supply a `team` to share the project with.
*
* Returns the full record of the newly created project.
*
* @deprecated replace with createProject
*
* @return response
*/
public function create($params = array(), $options = array())
{
return $this->client->post("/projects", $params, $options);
}
/**
* If the workspace for your project _is_ an organization, you must also
* supply a `team` to share the project with.
*
* Returns the full record of the newly created project.
*
* @deprecated replace with createProjectForWorkspace
*
* @param workspace The workspace or organization to create the project in.
* @return response
*/
public function createInWorkspace($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/projects", $workspace);
return $this->client->post($path, $params, $options);
}
/**
* Creates a project shared with the given team.
*
* Returns the full record of the newly created project.
*
* @deprecated replace with createProjectForTeam
*
* @param team The team to create the project in.
* @return response
*/
public function createInTeam($team, $params = array(), $options = array())
{
$path = sprintf("/teams/%s/projects", $team);
return $this->client->post($path, $params, $options);
}
/**
* Returns the complete project record for a single project.
*
* @deprecated replace with getProject
*
* @param project The project to get.
* @return response
*/
public function findById($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s", $project);
return $this->client->get($path, $params, $options);
}
/**
* A specific, existing project can be updated by making a PUT request on the
* URL for that project. Only the fields provided in the `data` block will be
* updated; any unspecified fields will remain unchanged.
*
* When using this method, it is best to specify only those fields you wish
* to change, or else you may overwrite changes made by another user since
* you last retrieved the task.
*
* Returns the complete updated project record.
*
* @deprecated replace with updateProject
*
* @param project The project to update.
* @return response
*/
public function update($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s", $project);
return $this->client->put($path, $params, $options);
}
/**
* A specific, existing project can be deleted by making a DELETE request
* on the URL for that project.
*
* Returns an empty data record.
*
* @deprecated replace with deleteProject
*
* @param project The project to delete.
* @return response
*/
public function delete($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s", $project);
return $this->client->delete($path, $params, $options);
}
/**
* Returns the compact project records for some filtered set of projects.
* Use one or more of the parameters provided to filter the projects returned.
*
* @deprecated replace with getProjects
*
* @return response
*/
public function findAll($params = array(), $options = array())
{
return $this->client->getCollection("/projects", $params, $options);
}
/**
* Returns the compact project records for all projects in the workspace.
*
* @deprecated replace with getProjectsForWorkspace
*
* @param workspace The workspace or organization to find projects in.
* @return response
*/
public function findByWorkspace($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/projects", $workspace);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the compact project records for all projects in the team.
*
* @deprecated replace with getProjectsForTeam
*
* @param team The team to find projects in.
* @return response
*/
public function findByTeam($team, $params = array(), $options = array())
{
$path = sprintf("/teams/%s/projects", $team);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the compact task records for all tasks within the given project,
* ordered by their priority within the project. Tasks can exist in more than one project at a time.
*
* @deprecated replace with Tasks.getTasksForProject
*
* @param project The project in which to search for tasks.
* @return response
*/
public function tasks($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/tasks", $project);
return $this->client->getCollection($path, $params, $options);
}
/**
* Adds the specified list of users as followers to the project. Followers are a subset of members, therefore if
* the users are not already members of the project they will also become members as a result of this operation.
* Returns the updated project record.
*
* @deprecated replace with addFollowersForProject
*
* @param project The project to add followers to.
* @return response
*/
public function addFollowers($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/addFollowers", $project);
return $this->client->post($path, $params, $options);
}
/**
* Removes the specified list of users from following the project, this will not affect project membership status.
* Returns the updated project record.
*
* @deprecated replace with removeFollowersForProject
*
* @param project The project to remove followers from.
* @return response
*/
public function removeFollowers($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/removeFollowers", $project);
return $this->client->post($path, $params, $options);
}
/**
* Adds the specified list of users as members of the project. Returns the updated project record.
*
* @deprecated replace with addMembersForProject
*
* @param project The project to add members to.
* @return response
*/
public function addMembers($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/addMembers", $project);
return $this->client->post($path, $params, $options);
}
/**
* Removes the specified list of members from the project. Returns the updated project record.
*
* @deprecated replace with removeMembersForProject
*
* @param project The project to remove members from.
* @return response
*/
public function removeMembers($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/removeMembers", $project);
return $this->client->post($path, $params, $options);
}
/**
* Create a new custom field setting on the project.
*
* @deprecated replace with addCustomFieldSettingForProject
*
* @param project The project to associate the custom field with
* @return response
*/
public function addCustomFieldSetting($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/addCustomFieldSetting", $project);
return $this->client->post($path, $params, $options);
}
/**
* Remove a custom field setting on the project.
*
* @deprecated replace with removeCustomFieldSettingForProject
*
* @param project The project to associate the custom field with
* @return response
*/
public function removeCustomFieldSetting($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/removeCustomFieldSetting", $project);
return $this->client->post($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/UserTaskLists.php | src/Asana/Resources/UserTaskLists.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\UserTaskListsBase;
class UserTaskLists extends UserTaskListsBase
{
/**
* Returns the full record for the user task list for the given user
*
* @deprecated replace with getUserTaskListForUser
*
* @param user An identifier for the user. Can be one of an email address,
* the globally unique identifier for the user, or the keyword `me`
* to indicate the current user making the request.
* @return response
*/
public function findByUser($user, $params = array(), $options = array())
{
$path = sprintf("/users/%s/user_task_list", $user);
return $this->client->get($path, $params, $options);
}
/**
* Returns the full record for a user task list.
*
* @deprecated replace with getUserTaskList
*
* @param user_task_list Globally unique identifier for the user task list.
* @return response
*/
public function findById($userTaskList, $params = array(), $options = array())
{
$path = sprintf("/user_task_lists/%s", $userTaskList);
return $this->client->get($path, $params, $options);
}
/**
* Returns the compact list of tasks in a user's My Tasks list. The returned
* tasks will be in order within each assignee status group of `Inbox`,
* `Today`, and `Upcoming`.
*
* **Note:** tasks in `Later` have a different ordering in the Asana web app
* than the other assignee status groups; this endpoint will still return
* them in list order in `Later` (differently than they show up in Asana,
* but the same order as in Asana's mobile apps).
*
* **Note:** Access control is enforced for this endpoint as with all Asana
* API endpoints, meaning a user's private tasks will be filtered out if the
* API-authenticated user does not have access to them.
*
* **Note:** Both complete and incomplete tasks are returned by default
* unless they are filtered out (for example, setting `completed_since=now`
* will return only incomplete tasks, which is the default view for "My
* Tasks" in Asana.)
*
* @deprecated replace with Tasks.getTasksForUserTaskList
*
* @param user_task_list The user task list in which to search for tasks.
* @return response
*/
public function tasks($userTaskList, $params = array(), $options = array())
{
$path = sprintf("/user_task_lists/%s/tasks", $userTaskList);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/TeamMemberships.php | src/Asana/Resources/TeamMemberships.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\TeamMembershipsBase;
class TeamMemberships extends TeamMembershipsBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/PortfolioMemberships.php | src/Asana/Resources/PortfolioMemberships.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\PortfolioMembershipsBase;
class PortfolioMemberships extends PortfolioMembershipsBase
{
/**
* Returns the compact portfolio membership records for the portfolio. You must
* specify `portfolio`, `portfolio` and `user`, or `workspace` and `user`.
*
* @deprecated replace with getPortfolioMemberships
*
* @return response
*/
public function findAll($params = array(), $options = array())
{
return $this->client->getCollection("/portfolio_memberships", $params, $options);
}
/**
* Returns the compact portfolio membership records for the portfolio.
*
* @deprecated replace with getPortfolioMembershipsForPortfolio
*
* @param portfolio The portfolio for which to fetch memberships.
* @return response
*/
public function findByPortfolio($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s/portfolio_memberships", $portfolio);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns the portfolio membership record.
*
* @deprecated replace with getPortfolioMembership
*
* @param portfolio_membership Globally unique identifier for the portfolio membership.
* @return response
*/
public function findById($portfolioMembership, $params = array(), $options = array())
{
$path = sprintf("/portfolio_memberships/%s", $portfolioMembership);
return $this->client->get($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/ProjectTemplates.php | src/Asana/Resources/ProjectTemplates.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\ProjectTemplatesBase;
class ProjectTemplates extends ProjectTemplatesBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Attachments.php | src/Asana/Resources/Attachments.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\AttachmentsBase;
class Attachments extends AttachmentsBase
{
public function createOnTask($task, $content, $filename, $contentType, $options = array())
{
$path = sprintf("/tasks/%s/attachments", $task);
$options['files'] = array('file' => array($content, $filename, $contentType));
return $this->client->request('POST', $path, $options);
}
/** Upload an attachment
*
* @param array $params
* @param array $options
* @return response
*/
public function createAttachmentForObject($content, $filename, $contentType, $options = array())
{
$path = "/attachments";
$options['files'] = array('file' => array($content, $filename, $contentType));
return $this->client->request('POST', $path, $options);
}
/**
* Returns the full record for a single attachment.
*
* @deprecated replace with getAttachment
*
* @param attachment Globally unique identifier for the attachment.
* @return response
*/
public function findById($attachment, $params = array(), $options = array())
{
$path = sprintf("/attachments/%s", $attachment);
return $this->client->get($path, $params, $options);
}
/**
* Returns the compact records for all attachments on the task.
*
* @deprecated replace with getAttachmentsForTask
*
* @param task Globally unique identifier for the task.
* @return response
*/
public function findByTask($task, $params = array(), $options = array())
{
$path = sprintf("/tasks/%s/attachments", $task);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/CustomFields.php | src/Asana/Resources/CustomFields.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\CustomFieldsBase;
class CustomFields extends CustomFieldsBase
{
public function addEnumOption($customField, $params = array(), $options = array())
{
return $this->createEnumOption($customField, $params, $options);
}
public function reorderEnumOption($customField, $params = array(), $options = array())
{
return $this->insertEnumOption($customField, $params, $options);
}
/**
* Creates a new custom field in a workspace. Every custom field is required to be created in a specific workspace, and this workspace cannot be changed once set.
*
* A custom field's `name` must be unique within a workspace and not conflict with names of existing task properties such as 'Due Date' or 'Assignee'. A custom field's `type` must be one of 'text', 'enum', or 'number'.
*
* Returns the full record of the newly created custom field.
*
* @deprecated replace with createCustomField
*
* @return response
*/
public function create($params = array(), $options = array())
{
return $this->client->post("/custom_fields", $params, $options);
}
/**
* Returns the complete definition of a custom field's metadata.
*
* @deprecated replace with getCustomField
*
* @param custom_field Globally unique identifier for the custom field.
* @return response
*/
public function findById($customField, $params = array(), $options = array())
{
$path = sprintf("/custom_fields/%s", $customField);
return $this->client->get($path, $params, $options);
}
/**
* Returns a list of the compact representation of all of the custom fields in a workspace.
*
* @deprecated replace with getCustomFieldsForWorkspace
*
* @param workspace The workspace or organization to find custom field definitions in.
* @return response
*/
public function findByWorkspace($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/custom_fields", $workspace);
return $this->client->getCollection($path, $params, $options);
}
/**
* A specific, existing custom field can be updated by making a PUT request on the URL for that custom field. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged
*
* When using this method, it is best to specify only those fields you wish to change, or else you may overwrite changes made by another user since you last retrieved the custom field.
*
* An enum custom field's `enum_options` cannot be updated with this endpoint. Instead see "Work With Enum Options" for information on how to update `enum_options`.
*
* Locked custom fields can only be updated by the user who locked the field.
*
* Returns the complete updated custom field record.
*
* @deprecated replace with updateCustomField
*
* @param custom_field Globally unique identifier for the custom field.
* @return response
*/
public function update($customField, $params = array(), $options = array())
{
$path = sprintf("/custom_fields/%s", $customField);
return $this->client->put($path, $params, $options);
}
/**
* A specific, existing custom field can be deleted by making a DELETE request on the URL for that custom field.
*
* Locked custom fields can only be deleted by the user who locked the field.
*
* Returns an empty data record.
*
* @deprecated replace with deleteCustomField
*
* @param custom_field Globally unique identifier for the custom field.
* @return response
*/
public function delete($customField, $params = array(), $options = array())
{
$path = sprintf("/custom_fields/%s", $customField);
return $this->client->delete($path, $params, $options);
}
/**
* Creates an enum option and adds it to this custom field's list of enum options. A custom field can have at most 50 enum options (including disabled options). By default new enum options are inserted at the end of a custom field's list.
*
* Locked custom fields can only have enum options added by the user who locked the field.
*
* Returns the full record of the newly created enum option.
*
* @deprecated replace with createEnumOptionForCustomField
*
* @param custom_field Globally unique identifier for the custom field.
* @return response
*/
public function createEnumOption($customField, $params = array(), $options = array())
{
$path = sprintf("/custom_fields/%s/enum_options", $customField);
return $this->client->post($path, $params, $options);
}
/**
* Moves a particular enum option to be either before or after another specified enum option in the custom field.
*
* Locked custom fields can only be reordered by the user who locked the field.
*
* @deprecated replace with insertEnumOptionForCustomField
*
* @param custom_field Globally unique identifier for the custom field.
* @return response
*/
public function insertEnumOption($customField, $params = array(), $options = array())
{
$path = sprintf("/custom_fields/%s/enum_options/insert", $customField);
return $this->client->post($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/BatchAPI.php | src/Asana/Resources/BatchAPI.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\BatchAPIBase;
class BatchAPI extends BatchAPIBase
{
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/CustomFieldSettings.php | src/Asana/Resources/CustomFieldSettings.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\CustomFieldSettingsBase;
class CustomFieldSettings extends CustomFieldSettingsBase
{
/**
* Returns a list of all of the custom fields settings on a project.
*
* @deprecated replace with getCustomFieldSettingsForProject
*
* @param project The ID of the project for which to list custom field settings
* @return response
*/
public function findByProject($project, $params = array(), $options = array())
{
$path = sprintf("/projects/%s/custom_field_settings", $project);
return $this->client->getCollection($path, $params, $options);
}
/**
* Returns a list of all of the custom fields settings on a portfolio.
*
* @deprecated replace with getCustomFieldSettingsForPortfolio
*
* @param portfolio The ID of the portfolio for which to list custom field settings
* @return response
*/
public function findByPortfolio($portfolio, $params = array(), $options = array())
{
$path = sprintf("/portfolios/%s/custom_field_settings", $portfolio);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Workspaces.php | src/Asana/Resources/Workspaces.php | <?php
namespace Asana\Resources;
use Asana\Resources\Gen\WorkspacesBase;
class Workspaces extends WorkspacesBase
{
/**
* Returns the full workspace record for a single workspace.
*
* @deprecated replace with getWorkspace
*
* @param workspace Globally unique identifier for the workspace or organization.
* @return response
*/
public function findById($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s", $workspace);
return $this->client->get($path, $params, $options);
}
/**
* Returns the compact records for all workspaces visible to the authorized user.
*
* @deprecated replace with getWorkspaces
*
* @return response
*/
public function findAll($params = array(), $options = array())
{
return $this->client->getCollection("/workspaces", $params, $options);
}
/**
* A specific, existing workspace can be updated by making a PUT request on
* the URL for that workspace. Only the fields provided in the data block
* will be updated; any unspecified fields will remain unchanged.
*
* Currently the only field that can be modified for a workspace is its `name`.
*
* Returns the complete, updated workspace record.
*
* @deprecated replace with updateWorkspace
*
* @param workspace The workspace to update.
* @return response
*/
public function update($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s", $workspace);
return $this->client->put($path, $params, $options);
}
/**
* Retrieves objects in the workspace based on an auto-completion/typeahead
* search algorithm. This feature is meant to provide results quickly, so do
* not rely on this API to provide extremely accurate search results. The
* result set is limited to a single page of results with a maximum size,
* so you won't be able to fetch large numbers of results.
*
* @deprecated replace with Typeahead.typeahead
*
* @param workspace The workspace to fetch objects from.
* @return response
*/
public function typeahead($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/typeahead", $workspace);
return $this->client->getCollection($path, $params, $options);
}
/**
* The user can be referenced by their globally unique user ID or their email address.
* Returns the full user record for the invited user.
*
* @deprecated replace with addUserForWorkspace
*
* @param workspace The workspace or organization to invite the user to.
* @return response
*/
public function addUser($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/addUser", $workspace);
return $this->client->post($path, $params, $options);
}
/**
* The user making this call must be an admin in the workspace.
* Returns an empty data record.
*
* @deprecated replace with removeUserForWorkspace
*
* @param workspace The workspace or organization to invite the user to.
* @return response
*/
public function removeUser($workspace, $params = array(), $options = array())
{
$path = sprintf("/workspaces/%s/removeUser", $workspace);
return $this->client->post($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/OrganizationExportsBase.php | src/Asana/Resources/Gen/OrganizationExportsBase.php | <?php
namespace Asana\Resources\Gen;
class OrganizationExportsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Create an organization export request
*
* @param array $params
* @param array $options
* @return response
*/
public function createOrganizationExport($params = array(), $options = array()) {
$path = "/organization_exports";
return $this->client->post($path, $params, $options);
}
/** Get details on an org export request
*
* @param string $organization_export_gid (required) Globally unique identifier for the organization export.
* @param array $params
* @param array $options
* @return response
*/
public function getOrganizationExport($organization_export_gid, $params = array(), $options = array()) {
$path = "/organization_exports/{organization_export_gid}";
$path = str_replace("{organization_export_gid}", $organization_export_gid, $path);
return $this->client->get($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/TeamsBase.php | src/Asana/Resources/Gen/TeamsBase.php | <?php
namespace Asana\Resources\Gen;
class TeamsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Add a user to a team
*
* @param string $team_gid (required) Globally unique identifier for the team.
* @param array $params
* @param array $options
* @return response
*/
public function addUserForTeam($team_gid, $params = array(), $options = array()) {
$path = "/teams/{team_gid}/addUser";
$path = str_replace("{team_gid}", $team_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Create a team
*
* @param array $params
* @param array $options
* @return response
*/
public function createTeam($params = array(), $options = array()) {
$path = "/teams";
return $this->client->post($path, $params, $options);
}
/** Get a team
*
* @param string $team_gid (required) Globally unique identifier for the team.
* @param array $params
* @param array $options
* @return response
*/
public function getTeam($team_gid, $params = array(), $options = array()) {
$path = "/teams/{team_gid}";
$path = str_replace("{team_gid}", $team_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get teams for a user
*
* @param string $user_gid (required) A string identifying a user. This can either be the string \"me\", an email, or the gid of a user.
* @param array $params
* @param array $options
* @return response
*/
public function getTeamsForUser($user_gid, $params = array(), $options = array()) {
$path = "/users/{user_gid}/teams";
$path = str_replace("{user_gid}", $user_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get teams in a workspace
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function getTeamsForWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}/teams";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Remove a user from a team
*
* @param string $team_gid (required) Globally unique identifier for the team.
* @param array $params
* @param array $options
* @return response
*/
public function removeUserForTeam($team_gid, $params = array(), $options = array()) {
$path = "/teams/{team_gid}/removeUser";
$path = str_replace("{team_gid}", $team_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Update a team
*
* @param array $params
* @param array $options
* @return response
*/
public function updateTeam($params = array(), $options = array()) {
$path = "/teams";
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/TagsBase.php | src/Asana/Resources/Gen/TagsBase.php | <?php
namespace Asana\Resources\Gen;
class TagsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Create a tag
*
* @param array $params
* @param array $options
* @return response
*/
public function createTag($params = array(), $options = array()) {
$path = "/tags";
return $this->client->post($path, $params, $options);
}
/** Create a tag in a workspace
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function createTagForWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}/tags";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Delete a tag
*
* @param string $tag_gid (required) Globally unique identifier for the tag.
* @param array $params
* @param array $options
* @return response
*/
public function deleteTag($tag_gid, $params = array(), $options = array()) {
$path = "/tags/{tag_gid}";
$path = str_replace("{tag_gid}", $tag_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get a tag
*
* @param string $tag_gid (required) Globally unique identifier for the tag.
* @param array $params
* @param array $options
* @return response
*/
public function getTag($tag_gid, $params = array(), $options = array()) {
$path = "/tags/{tag_gid}";
$path = str_replace("{tag_gid}", $tag_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get multiple tags
*
* @param array $params
* @param array $options
* @return response
*/
public function getTags($params = array(), $options = array()) {
$path = "/tags";
return $this->client->getCollection($path, $params, $options);
}
/** Get a task's tags
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function getTagsForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/tags";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get tags in a workspace
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function getTagsForWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}/tags";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Update a tag
*
* @param string $tag_gid (required) Globally unique identifier for the tag.
* @param array $params
* @param array $options
* @return response
*/
public function updateTag($tag_gid, $params = array(), $options = array()) {
$path = "/tags/{tag_gid}";
$path = str_replace("{tag_gid}", $tag_gid, $path);
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/TypeaheadBase.php | src/Asana/Resources/Gen/TypeaheadBase.php | <?php
namespace Asana\Resources\Gen;
class TypeaheadBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get objects via typeahead
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function typeaheadForWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}/typeahead";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/ProjectMembershipsBase.php | src/Asana/Resources/Gen/ProjectMembershipsBase.php | <?php
namespace Asana\Resources\Gen;
class ProjectMembershipsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get a project membership
*
* @param string $project_membership_gid (required)
* @param array $params
* @param array $options
* @return response
*/
public function getProjectMembership($project_membership_gid, $params = array(), $options = array()) {
$path = "/project_memberships/{project_membership_gid}";
$path = str_replace("{project_membership_gid}", $project_membership_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get memberships from a project
*
* @param string $project_gid (required) Globally unique identifier for the project.
* @param array $params
* @param array $options
* @return response
*/
public function getProjectMembershipsForProject($project_gid, $params = array(), $options = array()) {
$path = "/projects/{project_gid}/project_memberships";
$path = str_replace("{project_gid}", $project_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/PortfoliosBase.php | src/Asana/Resources/Gen/PortfoliosBase.php | <?php
namespace Asana\Resources\Gen;
class PortfoliosBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Add a custom field to a portfolio
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function addCustomFieldSettingForPortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}/addCustomFieldSetting";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Add a portfolio item
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function addItemForPortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}/addItem";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Add users to a portfolio
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function addMembersForPortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}/addMembers";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Create a portfolio
*
* @param array $params
* @param array $options
* @return response
*/
public function createPortfolio($params = array(), $options = array()) {
$path = "/portfolios";
return $this->client->post($path, $params, $options);
}
/** Delete a portfolio
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function deletePortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get portfolio items
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function getItemsForPortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}/items";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get a portfolio
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function getPortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get multiple portfolios
*
* @param array $params
* @param array $options
* @return response
*/
public function getPortfolios($params = array(), $options = array()) {
$path = "/portfolios";
return $this->client->getCollection($path, $params, $options);
}
/** Remove a custom field from a portfolio
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function removeCustomFieldSettingForPortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}/removeCustomFieldSetting";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Remove a portfolio item
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function removeItemForPortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}/removeItem";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Remove users from a portfolio
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function removeMembersForPortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}/removeMembers";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Update a portfolio
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function updatePortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/WebhooksBase.php | src/Asana/Resources/Gen/WebhooksBase.php | <?php
namespace Asana\Resources\Gen;
class WebhooksBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Establish a webhook
*
* @param array $params
* @param array $options
* @return response
*/
public function createWebhook($params = array(), $options = array()) {
$path = "/webhooks";
return $this->client->post($path, $params, $options);
}
/** Delete a webhook
*
* @param string $webhook_gid (required) Globally unique identifier for the webhook.
* @param array $params
* @param array $options
* @return response
*/
public function deleteWebhook($webhook_gid, $params = array(), $options = array()) {
$path = "/webhooks/{webhook_gid}";
$path = str_replace("{webhook_gid}", $webhook_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get a webhook
*
* @param string $webhook_gid (required) Globally unique identifier for the webhook.
* @param array $params
* @param array $options
* @return response
*/
public function getWebhook($webhook_gid, $params = array(), $options = array()) {
$path = "/webhooks/{webhook_gid}";
$path = str_replace("{webhook_gid}", $webhook_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get multiple webhooks
*
* @param array $params
* @param array $options
* @return response
*/
public function getWebhooks($params = array(), $options = array()) {
$path = "/webhooks";
return $this->client->getCollection($path, $params, $options);
}
/** Update a webhook
*
* @param string $webhook_gid (required) Globally unique identifier for the webhook.
* @param array $params
* @param array $options
* @return response
*/
public function updateWebhook($webhook_gid, $params = array(), $options = array()) {
$path = "/webhooks/{webhook_gid}";
$path = str_replace("{webhook_gid}", $webhook_gid, $path);
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/MembershipsBase.php | src/Asana/Resources/Gen/MembershipsBase.php | <?php
namespace Asana\Resources\Gen;
class MembershipsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Create a membership
*
* @param array $params
* @param array $options
* @return response
*/
public function createMembership($params = array(), $options = array()) {
$path = "/memberships";
return $this->client->post($path, $params, $options);
}
/** Delete a membership
*
* @param string $membership_gid (required) Globally unique identifier for the membership.
* @param array $params
* @param array $options
* @return response
*/
public function deleteMembership($membership_gid, $params = array(), $options = array()) {
$path = "/memberships/{membership_gid}";
$path = str_replace("{membership_gid}", $membership_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get multiple memberships
*
* @param array $params
* @param array $options
* @return response
*/
public function getMemberships($params = array(), $options = array()) {
$path = "/memberships";
return $this->client->getCollection($path, $params, $options);
}
/** Update a membership
*
* @param string $membership_gid (required) Globally unique identifier for the membership.
* @param array $params
* @param array $options
* @return response
*/
public function updateMembership($membership_gid, $params = array(), $options = array()) {
$path = "/memberships/{membership_gid}";
$path = str_replace("{membership_gid}", $membership_gid, $path);
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/UserTaskListsBase.php | src/Asana/Resources/Gen/UserTaskListsBase.php | <?php
namespace Asana\Resources\Gen;
class UserTaskListsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get a user task list
*
* @param string $user_task_list_gid (required) Globally unique identifier for the user task list.
* @param array $params
* @param array $options
* @return response
*/
public function getUserTaskList($user_task_list_gid, $params = array(), $options = array()) {
$path = "/user_task_lists/{user_task_list_gid}";
$path = str_replace("{user_task_list_gid}", $user_task_list_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get a user's task list
*
* @param string $user_gid (required) A string identifying a user. This can either be the string \"me\", an email, or the gid of a user.
* @param array $params
* @param array $options
* @return response
*/
public function getUserTaskListForUser($user_gid, $params = array(), $options = array()) {
$path = "/users/{user_gid}/user_task_list";
$path = str_replace("{user_gid}", $user_gid, $path);
return $this->client->get($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/WorkspacesBase.php | src/Asana/Resources/Gen/WorkspacesBase.php | <?php
namespace Asana\Resources\Gen;
class WorkspacesBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Add a user to a workspace or organization
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function addUserForWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}/addUser";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Get a workspace
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function getWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get multiple workspaces
*
* @param array $params
* @param array $options
* @return response
*/
public function getWorkspaces($params = array(), $options = array()) {
$path = "/workspaces";
return $this->client->getCollection($path, $params, $options);
}
/** Remove a user from a workspace or organization
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function removeUserForWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}/removeUser";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Update a workspace
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function updateWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/StoriesBase.php | src/Asana/Resources/Gen/StoriesBase.php | <?php
namespace Asana\Resources\Gen;
class StoriesBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Create a story on a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function createStoryForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/stories";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Delete a story
*
* @param string $story_gid (required) Globally unique identifier for the story.
* @param array $params
* @param array $options
* @return response
*/
public function deleteStory($story_gid, $params = array(), $options = array()) {
$path = "/stories/{story_gid}";
$path = str_replace("{story_gid}", $story_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get stories from a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function getStoriesForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/stories";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get a story
*
* @param string $story_gid (required) Globally unique identifier for the story.
* @param array $params
* @param array $options
* @return response
*/
public function getStory($story_gid, $params = array(), $options = array()) {
$path = "/stories/{story_gid}";
$path = str_replace("{story_gid}", $story_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Update a story
*
* @param string $story_gid (required) Globally unique identifier for the story.
* @param array $params
* @param array $options
* @return response
*/
public function updateStory($story_gid, $params = array(), $options = array()) {
$path = "/stories/{story_gid}";
$path = str_replace("{story_gid}", $story_gid, $path);
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/TeamMembershipsBase.php | src/Asana/Resources/Gen/TeamMembershipsBase.php | <?php
namespace Asana\Resources\Gen;
class TeamMembershipsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get a team membership
*
* @param string $team_membership_gid (required)
* @param array $params
* @param array $options
* @return response
*/
public function getTeamMembership($team_membership_gid, $params = array(), $options = array()) {
$path = "/team_memberships/{team_membership_gid}";
$path = str_replace("{team_membership_gid}", $team_membership_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get team memberships
*
* @param array $params
* @param array $options
* @return response
*/
public function getTeamMemberships($params = array(), $options = array()) {
$path = "/team_memberships";
return $this->client->getCollection($path, $params, $options);
}
/** Get memberships from a team
*
* @param string $team_gid (required) Globally unique identifier for the team.
* @param array $params
* @param array $options
* @return response
*/
public function getTeamMembershipsForTeam($team_gid, $params = array(), $options = array()) {
$path = "/teams/{team_gid}/team_memberships";
$path = str_replace("{team_gid}", $team_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get memberships from a user
*
* @param string $user_gid (required) A string identifying a user. This can either be the string \"me\", an email, or the gid of a user.
* @param array $params
* @param array $options
* @return response
*/
public function getTeamMembershipsForUser($user_gid, $params = array(), $options = array()) {
$path = "/users/{user_gid}/team_memberships";
$path = str_replace("{user_gid}", $user_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/PortfolioMembershipsBase.php | src/Asana/Resources/Gen/PortfolioMembershipsBase.php | <?php
namespace Asana\Resources\Gen;
class PortfolioMembershipsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get a portfolio membership
*
* @param string $portfolio_membership_gid (required)
* @param array $params
* @param array $options
* @return response
*/
public function getPortfolioMembership($portfolio_membership_gid, $params = array(), $options = array()) {
$path = "/portfolio_memberships/{portfolio_membership_gid}";
$path = str_replace("{portfolio_membership_gid}", $portfolio_membership_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get multiple portfolio memberships
*
* @param array $params
* @param array $options
* @return response
*/
public function getPortfolioMemberships($params = array(), $options = array()) {
$path = "/portfolio_memberships";
return $this->client->getCollection($path, $params, $options);
}
/** Get memberships from a portfolio
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function getPortfolioMembershipsForPortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}/portfolio_memberships";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/AttachmentsBase.php | src/Asana/Resources/Gen/AttachmentsBase.php | <?php
namespace Asana\Resources\Gen;
class AttachmentsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Delete an attachment
*
* @param string $attachment_gid (required) Globally unique identifier for the attachment.
* @param array $params
* @param array $options
* @return response
*/
public function deleteAttachment($attachment_gid, $params = array(), $options = array()) {
$path = "/attachments/{attachment_gid}";
$path = str_replace("{attachment_gid}", $attachment_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get an attachment
*
* @param string $attachment_gid (required) Globally unique identifier for the attachment.
* @param array $params
* @param array $options
* @return response
*/
public function getAttachment($attachment_gid, $params = array(), $options = array()) {
$path = "/attachments/{attachment_gid}";
$path = str_replace("{attachment_gid}", $attachment_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get attachments from an object
*
* @param array $params
* @param array $options
* @return response
*/
public function getAttachmentsForObject($params = array(), $options = array()) {
$path = "/attachments";
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/CustomFieldSettingsBase.php | src/Asana/Resources/Gen/CustomFieldSettingsBase.php | <?php
namespace Asana\Resources\Gen;
class CustomFieldSettingsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get a portfolio's custom fields
*
* @param string $portfolio_gid (required) Globally unique identifier for the portfolio.
* @param array $params
* @param array $options
* @return response
*/
public function getCustomFieldSettingsForPortfolio($portfolio_gid, $params = array(), $options = array()) {
$path = "/portfolios/{portfolio_gid}/custom_field_settings";
$path = str_replace("{portfolio_gid}", $portfolio_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get a project's custom fields
*
* @param string $project_gid (required) Globally unique identifier for the project.
* @param array $params
* @param array $options
* @return response
*/
public function getCustomFieldSettingsForProject($project_gid, $params = array(), $options = array()) {
$path = "/projects/{project_gid}/custom_field_settings";
$path = str_replace("{project_gid}", $project_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/WorkspaceMembershipsBase.php | src/Asana/Resources/Gen/WorkspaceMembershipsBase.php | <?php
namespace Asana\Resources\Gen;
class WorkspaceMembershipsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get a workspace membership
*
* @param string $workspace_membership_gid (required)
* @param array $params
* @param array $options
* @return response
*/
public function getWorkspaceMembership($workspace_membership_gid, $params = array(), $options = array()) {
$path = "/workspace_memberships/{workspace_membership_gid}";
$path = str_replace("{workspace_membership_gid}", $workspace_membership_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get workspace memberships for a user
*
* @param string $user_gid (required) A string identifying a user. This can either be the string \"me\", an email, or the gid of a user.
* @param array $params
* @param array $options
* @return response
*/
public function getWorkspaceMembershipsForUser($user_gid, $params = array(), $options = array()) {
$path = "/users/{user_gid}/workspace_memberships";
$path = str_replace("{user_gid}", $user_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get the workspace memberships for a workspace
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function getWorkspaceMembershipsForWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}/workspace_memberships";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/EventsBase.php | src/Asana/Resources/Gen/EventsBase.php | <?php
namespace Asana\Resources\Gen;
class EventsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get events on a resource
*
* @param array $params
* @param array $options
* @return response
*/
public function getEvents($params = array(), $options = array()) {
$path = "/events";
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/ProjectStatusesBase.php | src/Asana/Resources/Gen/ProjectStatusesBase.php | <?php
namespace Asana\Resources\Gen;
class ProjectStatusesBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Create a project status
*
* @param string $project_gid (required) Globally unique identifier for the project.
* @param array $params
* @param array $options
* @return response
*/
public function createProjectStatusForProject($project_gid, $params = array(), $options = array()) {
$path = "/projects/{project_gid}/project_statuses";
$path = str_replace("{project_gid}", $project_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Delete a project status
*
* @param string $project_status_gid (required) The project status update to get.
* @param array $params
* @param array $options
* @return response
*/
public function deleteProjectStatus($project_status_gid, $params = array(), $options = array()) {
$path = "/project_statuses/{project_status_gid}";
$path = str_replace("{project_status_gid}", $project_status_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get a project status
*
* @param string $project_status_gid (required) The project status update to get.
* @param array $params
* @param array $options
* @return response
*/
public function getProjectStatus($project_status_gid, $params = array(), $options = array()) {
$path = "/project_statuses/{project_status_gid}";
$path = str_replace("{project_status_gid}", $project_status_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get statuses from a project
*
* @param string $project_gid (required) Globally unique identifier for the project.
* @param array $params
* @param array $options
* @return response
*/
public function getProjectStatusesForProject($project_gid, $params = array(), $options = array()) {
$path = "/projects/{project_gid}/project_statuses";
$path = str_replace("{project_gid}", $project_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/SectionsBase.php | src/Asana/Resources/Gen/SectionsBase.php | <?php
namespace Asana\Resources\Gen;
class SectionsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Add task to section
*
* @param string $section_gid (required) The globally unique identifier for the section.
* @param array $params
* @param array $options
* @return response
*/
public function addTaskForSection($section_gid, $params = array(), $options = array()) {
$path = "/sections/{section_gid}/addTask";
$path = str_replace("{section_gid}", $section_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Create a section in a project
*
* @param string $project_gid (required) Globally unique identifier for the project.
* @param array $params
* @param array $options
* @return response
*/
public function createSectionForProject($project_gid, $params = array(), $options = array()) {
$path = "/projects/{project_gid}/sections";
$path = str_replace("{project_gid}", $project_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Delete a section
*
* @param string $section_gid (required) The globally unique identifier for the section.
* @param array $params
* @param array $options
* @return response
*/
public function deleteSection($section_gid, $params = array(), $options = array()) {
$path = "/sections/{section_gid}";
$path = str_replace("{section_gid}", $section_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get a section
*
* @param string $section_gid (required) The globally unique identifier for the section.
* @param array $params
* @param array $options
* @return response
*/
public function getSection($section_gid, $params = array(), $options = array()) {
$path = "/sections/{section_gid}";
$path = str_replace("{section_gid}", $section_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get sections in a project
*
* @param string $project_gid (required) Globally unique identifier for the project.
* @param array $params
* @param array $options
* @return response
*/
public function getSectionsForProject($project_gid, $params = array(), $options = array()) {
$path = "/projects/{project_gid}/sections";
$path = str_replace("{project_gid}", $project_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Move or Insert sections
*
* @param string $project_gid (required) Globally unique identifier for the project.
* @param array $params
* @param array $options
* @return response
*/
public function insertSectionForProject($project_gid, $params = array(), $options = array()) {
$path = "/projects/{project_gid}/sections/insert";
$path = str_replace("{project_gid}", $project_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Update a section
*
* @param string $section_gid (required) The globally unique identifier for the section.
* @param array $params
* @param array $options
* @return response
*/
public function updateSection($section_gid, $params = array(), $options = array()) {
$path = "/sections/{section_gid}";
$path = str_replace("{section_gid}", $section_gid, $path);
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/TasksBase.php | src/Asana/Resources/Gen/TasksBase.php | <?php
namespace Asana\Resources\Gen;
class TasksBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Set dependencies for a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function addDependenciesForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/addDependencies";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Set dependents for a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function addDependentsForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/addDependents";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Add followers to a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function addFollowersForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/addFollowers";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Add a project to a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function addProjectForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/addProject";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Add a tag to a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function addTagForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/addTag";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Create a subtask
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function createSubtaskForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/subtasks";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Create a task
*
* @param array $params
* @param array $options
* @return response
*/
public function createTask($params = array(), $options = array()) {
$path = "/tasks";
return $this->client->post($path, $params, $options);
}
/** Delete a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function deleteTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Duplicate a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function duplicateTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/duplicate";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Get dependencies from a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function getDependenciesForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/dependencies";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get dependents from a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function getDependentsForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/dependents";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get subtasks from a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function getSubtasksForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/subtasks";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function getTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get multiple tasks
*
* @param array $params
* @param array $options
* @return response
*/
public function getTasks($params = array(), $options = array()) {
$path = "/tasks";
return $this->client->getCollection($path, $params, $options);
}
/** Get tasks from a project
*
* @param string $project_gid (required) Globally unique identifier for the project.
* @param array $params
* @param array $options
* @return response
*/
public function getTasksForProject($project_gid, $params = array(), $options = array()) {
$path = "/projects/{project_gid}/tasks";
$path = str_replace("{project_gid}", $project_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get tasks from a section
*
* @param string $section_gid (required) The globally unique identifier for the section.
* @param array $params
* @param array $options
* @return response
*/
public function getTasksForSection($section_gid, $params = array(), $options = array()) {
$path = "/sections/{section_gid}/tasks";
$path = str_replace("{section_gid}", $section_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get tasks from a tag
*
* @param string $tag_gid (required) Globally unique identifier for the tag.
* @param array $params
* @param array $options
* @return response
*/
public function getTasksForTag($tag_gid, $params = array(), $options = array()) {
$path = "/tags/{tag_gid}/tasks";
$path = str_replace("{tag_gid}", $tag_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get tasks from a user task list
*
* @param string $user_task_list_gid (required) Globally unique identifier for the user task list.
* @param array $params
* @param array $options
* @return response
*/
public function getTasksForUserTaskList($user_task_list_gid, $params = array(), $options = array()) {
$path = "/user_task_lists/{user_task_list_gid}/tasks";
$path = str_replace("{user_task_list_gid}", $user_task_list_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Unlink dependencies from a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function removeDependenciesForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/removeDependencies";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Unlink dependents from a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function removeDependentsForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/removeDependents";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Remove followers from a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function removeFollowerForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/removeFollowers";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Remove a project from a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function removeProjectForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/removeProject";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Remove a tag from a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function removeTagForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/removeTag";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Search tasks in a workspace
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function searchTasksForWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}/tasks/search";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Set the parent of a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function setParentForTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}/setParent";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Update a task
*
* @param string $task_gid (required) The task to operate on.
* @param array $params
* @param array $options
* @return response
*/
public function updateTask($task_gid, $params = array(), $options = array()) {
$path = "/tasks/{task_gid}";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/ProjectTemplatesBase.php | src/Asana/Resources/Gen/ProjectTemplatesBase.php | <?php
namespace Asana\Resources\Gen;
class ProjectTemplatesBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get a project template
*
* @param string $project_template_gid (required) Globally unique identifier for the project template.
* @param array $params
* @param array $options
* @return response
*/
public function getProjectTemplate($project_template_gid, $params = array(), $options = array()) {
$path = "/project_templates/{project_template_gid}";
$path = str_replace("{project_template_gid}", $project_template_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get multiple project templates
*
* @param array $params
* @param array $options
* @return response
*/
public function getProjectTemplates($params = array(), $options = array()) {
$path = "/project_templates";
return $this->client->getCollection($path, $params, $options);
}
/** Get a team's project templates
*
* @param string $team_gid (required) Globally unique identifier for the team.
* @param array $params
* @param array $options
* @return response
*/
public function getProjectTemplatesForTeam($team_gid, $params = array(), $options = array()) {
$path = "/teams/{team_gid}/project_templates";
$path = str_replace("{team_gid}", $team_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Instantiate a project from a project template
*
* @param string $project_template_gid (required) Globally unique identifier for the project template.
* @param array $params
* @param array $options
* @return response
*/
public function instantiateProject($project_template_gid, $params = array(), $options = array()) {
$path = "/project_templates/{project_template_gid}/instantiateProject";
$path = str_replace("{project_template_gid}", $project_template_gid, $path);
return $this->client->post($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/BatchAPIBase.php | src/Asana/Resources/Gen/BatchAPIBase.php | <?php
namespace Asana\Resources\Gen;
class BatchAPIBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Submit parallel requests
*
* @param array $params
* @param array $options
* @return response
*/
public function createBatchRequest($params = array(), $options = array()) {
$path = "/batch";
return $this->client->post($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/TimePeriodsBase.php | src/Asana/Resources/Gen/TimePeriodsBase.php | <?php
namespace Asana\Resources\Gen;
class TimePeriodsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get a time period
*
* @param string $time_period_gid (required) Globally unique identifier for the time period.
* @param array $params
* @param array $options
* @return response
*/
public function getTimePeriod($time_period_gid, $params = array(), $options = array()) {
$path = "/time_periods/{time_period_gid}";
$path = str_replace("{time_period_gid}", $time_period_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get time periods
*
* @param array $params
* @param array $options
* @return response
*/
public function getTimePeriods($params = array(), $options = array()) {
$path = "/time_periods";
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/JobsBase.php | src/Asana/Resources/Gen/JobsBase.php | <?php
namespace Asana\Resources\Gen;
class JobsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get a job by id
*
* @param string $job_gid (required) Globally unique identifier for the job.
* @param array $params
* @param array $options
* @return response
*/
public function getJob($job_gid, $params = array(), $options = array()) {
$path = "/jobs/{job_gid}";
$path = str_replace("{job_gid}", $job_gid, $path);
return $this->client->get($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/CustomFieldsBase.php | src/Asana/Resources/Gen/CustomFieldsBase.php | <?php
namespace Asana\Resources\Gen;
class CustomFieldsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Create a custom field
*
* @param array $params
* @param array $options
* @return response
*/
public function createCustomField($params = array(), $options = array()) {
$path = "/custom_fields";
return $this->client->post($path, $params, $options);
}
/** Create an enum option
*
* @param string $custom_field_gid (required) Globally unique identifier for the custom field.
* @param array $params
* @param array $options
* @return response
*/
public function createEnumOptionForCustomField($custom_field_gid, $params = array(), $options = array()) {
$path = "/custom_fields/{custom_field_gid}/enum_options";
$path = str_replace("{custom_field_gid}", $custom_field_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Delete a custom field
*
* @param string $custom_field_gid (required) Globally unique identifier for the custom field.
* @param array $params
* @param array $options
* @return response
*/
public function deleteCustomField($custom_field_gid, $params = array(), $options = array()) {
$path = "/custom_fields/{custom_field_gid}";
$path = str_replace("{custom_field_gid}", $custom_field_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get a custom field
*
* @param string $custom_field_gid (required) Globally unique identifier for the custom field.
* @param array $params
* @param array $options
* @return response
*/
public function getCustomField($custom_field_gid, $params = array(), $options = array()) {
$path = "/custom_fields/{custom_field_gid}";
$path = str_replace("{custom_field_gid}", $custom_field_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get a workspace's custom fields
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function getCustomFieldsForWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}/custom_fields";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Reorder a custom field's enum
*
* @param string $custom_field_gid (required) Globally unique identifier for the custom field.
* @param array $params
* @param array $options
* @return response
*/
public function insertEnumOptionForCustomField($custom_field_gid, $params = array(), $options = array()) {
$path = "/custom_fields/{custom_field_gid}/enum_options/insert";
$path = str_replace("{custom_field_gid}", $custom_field_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Update a custom field
*
* @param string $custom_field_gid (required) Globally unique identifier for the custom field.
* @param array $params
* @param array $options
* @return response
*/
public function updateCustomField($custom_field_gid, $params = array(), $options = array()) {
$path = "/custom_fields/{custom_field_gid}";
$path = str_replace("{custom_field_gid}", $custom_field_gid, $path);
return $this->client->put($path, $params, $options);
}
/** Update an enum option
*
* @param string $enum_option_gid (required) Globally unique identifier for the enum option.
* @param array $params
* @param array $options
* @return response
*/
public function updateEnumOption($enum_option_gid, $params = array(), $options = array()) {
$path = "/enum_options/{enum_option_gid}";
$path = str_replace("{enum_option_gid}", $enum_option_gid, $path);
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/ProjectBriefsBase.php | src/Asana/Resources/Gen/ProjectBriefsBase.php | <?php
namespace Asana\Resources\Gen;
class ProjectBriefsBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Create a project brief
*
* @param string $project_gid (required) Globally unique identifier for the project.
* @param array $params
* @param array $options
* @return response
*/
public function createProjectBrief($project_gid, $params = array(), $options = array()) {
$path = "/projects/{project_gid}/project_briefs";
$path = str_replace("{project_gid}", $project_gid, $path);
return $this->client->post($path, $params, $options);
}
/** Delete a project brief
*
* @param string $project_brief_gid (required) Globally unique identifier for the project brief.
* @param array $params
* @param array $options
* @return response
*/
public function deleteProjectBrief($project_brief_gid, $params = array(), $options = array()) {
$path = "/project_briefs/{project_brief_gid}";
$path = str_replace("{project_brief_gid}", $project_brief_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get a project brief
*
* @param string $project_brief_gid (required) Globally unique identifier for the project brief.
* @param array $params
* @param array $options
* @return response
*/
public function getProjectBrief($project_brief_gid, $params = array(), $options = array()) {
$path = "/project_briefs/{project_brief_gid}";
$path = str_replace("{project_brief_gid}", $project_brief_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Update a project brief
*
* @param string $project_brief_gid (required) Globally unique identifier for the project brief.
* @param array $params
* @param array $options
* @return response
*/
public function updateProjectBrief($project_brief_gid, $params = array(), $options = array()) {
$path = "/project_briefs/{project_brief_gid}";
$path = str_replace("{project_brief_gid}", $project_brief_gid, $path);
return $this->client->put($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/UsersBase.php | src/Asana/Resources/Gen/UsersBase.php | <?php
namespace Asana\Resources\Gen;
class UsersBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Get a user's favorites
*
* @param string $user_gid (required) A string identifying a user. This can either be the string \"me\", an email, or the gid of a user.
* @param array $params
* @param array $options
* @return response
*/
public function getFavoritesForUser($user_gid, $params = array(), $options = array()) {
$path = "/users/{user_gid}/favorites";
$path = str_replace("{user_gid}", $user_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get a user
*
* @param string $user_gid (required) A string identifying a user. This can either be the string \"me\", an email, or the gid of a user.
* @param array $params
* @param array $options
* @return response
*/
public function getUser($user_gid, $params = array(), $options = array()) {
$path = "/users/{user_gid}";
$path = str_replace("{user_gid}", $user_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get multiple users
*
* @param array $params
* @param array $options
* @return response
*/
public function getUsers($params = array(), $options = array()) {
$path = "/users";
return $this->client->getCollection($path, $params, $options);
}
/** Get users in a team
*
* @param string $team_gid (required) Globally unique identifier for the team.
* @param array $params
* @param array $options
* @return response
*/
public function getUsersForTeam($team_gid, $params = array(), $options = array()) {
$path = "/teams/{team_gid}/users";
$path = str_replace("{team_gid}", $team_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
/** Get users in a workspace or organization
*
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization.
* @param array $params
* @param array $options
* @return response
*/
public function getUsersForWorkspace($workspace_gid, $params = array(), $options = array()) {
$path = "/workspaces/{workspace_gid}/users";
$path = str_replace("{workspace_gid}", $workspace_gid, $path);
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Asana/php-asana | https://github.com/Asana/php-asana/blob/88868108be00da49fbf0c101d0c078edebc0bf3f/src/Asana/Resources/Gen/StatusUpdatesBase.php | src/Asana/Resources/Gen/StatusUpdatesBase.php | <?php
namespace Asana\Resources\Gen;
class StatusUpdatesBase {
/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}
/** Create a status update
*
* @param array $params
* @param array $options
* @return response
*/
public function createStatusForObject($params = array(), $options = array()) {
$path = "/status_updates";
return $this->client->post($path, $params, $options);
}
/** Delete a status update
*
* @param string $status_gid (required) The status update to get.
* @param array $params
* @param array $options
* @return response
*/
public function deleteStatus($status_gid, $params = array(), $options = array()) {
$path = "/status_updates/{status_gid}";
$path = str_replace("{status_gid}", $status_gid, $path);
return $this->client->delete($path, $params, $options);
}
/** Get a status update
*
* @param string $status_gid (required) The status update to get.
* @param array $params
* @param array $options
* @return response
*/
public function getStatus($status_gid, $params = array(), $options = array()) {
$path = "/status_updates/{status_gid}";
$path = str_replace("{status_gid}", $status_gid, $path);
return $this->client->get($path, $params, $options);
}
/** Get status updates from an object
*
* @param array $params
* @param array $options
* @return response
*/
public function getStatusesForObject($params = array(), $options = array()) {
$path = "/status_updates";
return $this->client->getCollection($path, $params, $options);
}
}
| php | MIT | 88868108be00da49fbf0c101d0c078edebc0bf3f | 2026-01-05T04:58:34.842652Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.