在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:titon/framework开源软件地址:https://github.com/titon/framework开源编程语言:Hack 77.7%开源软件介绍:
Titon FrameworkWhat is Titon?Titon is a modular web framework built on Hack that runs in HHVM. It is written with simplicity and efficiency in mind, with enough room for extensibility and abstraction. The framework takes advantage of Hack's strict mode, type system, generics, collections, and more. It also integrates the wonderful PSRs from PHP-FIG for increased interoperability with external PHP code bases and libraries. Looking for more information? Find us in #titon on FreeNode. RequirementsRoadmapUpcoming features and release plan.
Features and additions currently in discussion.
UsageDocumentation is currently in the works, but in the mean time, check out the following articles. ContributingTiton is accepting any knowledgeable PHP developers looking to get their hands and feet wet in Hack. Chat with us over in #titon for more information. TestingTiton comes packaged with a Vagrant box and a handful of Python scripts to ease the testing process. Boot up the Vagrant instance with /vagrant/bin/run-tests Or run tests for a single file or folder. /vagrant/bin/run-tests --path=Titon/Common Or filter tests based on class or method name. /vagrant/bin/run-tests --filter=methodName Hack Strict ModeFor the most part, Titon strives to be strict compliant. This can be very challenging, but with Hack's built-in type checker, it couldn't be easier. Simply run the following command to check for strict issues. /vagrant/bin/type-check Or type check a specific folder. /vagrant/bin/type-check --path=Titon/Utility When filtering down by path, multiple errors will still arise like "Was expecting a class", "Unbound name", "Unbound global constant", "This is not a container, this is an object of type X", etc. The main cause of this issue is that the type checker is ran in a sub-folder, and not the root, so all those classes are not in scope. This should not be an issue if the type checker is ran in the source root. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论