Skip to content

Commit

Permalink
Merge pull request #125 from yangweijie/patch-1
Browse files Browse the repository at this point in the history
php 扩展管理器 添加 xlswriter
  • Loading branch information
xianyunleo authored Nov 20, 2024
2 parents 3b7fecc + 26702b4 commit 59a0dbf
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/main/core/php/extension/Extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export default class Extension {
name: 'imagick',
fileName: 'imagick.so',
needX64Brew: true
},{
name: 'xlswriter',
fileName: 'xlswriter.so'
}
]
}
Expand All @@ -67,6 +70,9 @@ export default class Extension {
name: 'xdebug',
fileName: 'php_xdebug.dll',
isZend: true
}, {
name: 'xlswriter',
fileName: 'php_xlswriter.dll'
}
]
}
Expand Down Expand Up @@ -133,6 +139,10 @@ export default class Extension {
} else {
return '3.3.2'
}
case 'xlswriter':
if (phpVersion >= 7.0){
return '1.5.7'
}
}
return null
}
Expand Down Expand Up @@ -178,7 +188,19 @@ export default class Extension {
} else {
return '3.3.2'
}

case 'xlswriter':

if (phpVersion == 7.0){
return '1.2.3'
}else if (phpVersion == 7.1){
return '1.3.2'
}else if (phpVersion == 7.2){
return '1.3.7'
}else if (phpVersion >= 7.3 && phpVersion < 8.0){
return '1.5.1'
}else{
return '1.5.7'
}
}
return null
}
Expand Down

0 comments on commit 59a0dbf

Please sign in to comment.