PHP extensions
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- PHP
- Star
- 2
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Currently, we compile with the following extensions enabled:
- Core
- bcmath
- ctype
- date
- fileinfo
- filter
- hash
- iconv
- json
- openssl
- pcre
- Phar
- posix
- Reflection
- session
- SPL
- standard
- tokenizer
Looking at https://bref.sh/docs/environment/php.html#extensions-installed-and-enabled and from scanning through use cases, the following could be interesting:
- gd, exif - image processing
- mbstring - prerequisite for exif anyways
- sodium - for crypto
zlib - if we want to create ZIP files, HTTP compression- see https://github.com/xp-forge/lambda/issues/8#issuecomment-1184378957- sqlite3 - for temporary data storage
libxml, dom, xml, xmlreader, xmlwriter - for processing XML and HTML- see #11
The following extensions don't seem to make sense for an AWS lambda enviromment:
- pcntl - for parallelization, you would most probably just invoke other lambdas and/or use a message queue
- readline - this is for humans sitting in front of a terminal, not for the serverside
- curl, ftp, mysqli / mysqlnd - the XP Framework has it's own protocol implementations
- sockets - the standard socket library works just as well for (most - or almost all?) cases
- opcache - we leave our code running after compiling once, caching doesn't improve this any more
SimpleXML - covered by XP Framework's XML APIs- used by AWS SDK, see https://github.com/xp-forge/lambda/issues/8#issuecomment-966497081
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với tài liệu về các extension PHP của Bref và các bình luận được liên kết trong issue, sau đó so sánh danh sách đã biên dịch hiện tại với các ứng viên gd, exif, mbstring, sodium và sqlite3 được đề xuất. Xác nhận tập hợp extension cần thiết cho các trường hợp sử dụng của repository, cập nhật cấu hình extension và xác minh rằng Lambda build biên dịch thành công với danh sách đã thống nhất.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws, php
- Lĩnh vực
- backend, cloud
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100