2019 错过春招

tech2022-09-17  104

2019 错过春招

In an already all too familiar format, here’s more PHP news you may have missed over the past month or so. Some of these will be presented in more depth in future posts, but it’s just as important to have a heads up about them.

在一个已经非常熟悉的格式中,这是您过去一个月左右可能错过的更多PHP新闻。 其中一些将在以后的帖子中进行更深入的介绍,但是对它们有所了解同样重要。

虚拟机 (HHVM)

HHVM is on fire lately – we have four major updates from the HHVM world.

HHVM最近备受关注– HHVM世界有四个主要更新。

重写构造函数,新的static和__ConsistentConstruct (Overriding Constructors, New static and __ConsistentConstruct)

As explained in this blog post, hack has been upgraded with some new features. Due to Hack already supporting static typing, implementing a type checker for method overrides was the natural step. Hack’s strict mode now checks if a child class’ method overrides a method of the parent but also changes the return type, and disallows such behavior. One exception to this strictness is in constructors – overridden constructors can have different signatures. They’ve also added the __ConsistentConstruct user attribute which makes sure you can use new static() in contexts where constructor overrides aren’t natural, i.e. where you don’t know which class exactly you’ll be getting in return.

如本博文所述 ,hack已升级为具有一些新功能。 由于Hack已经支持静态类型,因此自然而然地实现了方法覆盖的类型检查器。 Hack的严格模式现在检查子类的方法是否覆盖父类的方法,但还会更改返回类型,并禁止这种行为。 这种严格性的一个例外是构造函数–重写的构造函数可以具有不同的签名。 他们还添加了__ConsistentConstruct 用户属性 ,该属性确保您可以在构造函数重写不自然的上下文中使用new static() ,即您不知道返回的确切类。

H2TP (H2TP)

Facebook released an experimental release of H2TP, a transpiler that you can use to convert Hack code to PHP5 code. We’ve mentioned before that you can easily run PHP5 code on HHVM. However, if you write Hack code, that won’t run on the Zend Engine and isn’t compatible with good old PHP. Personally, I don’t see this as a problem at all, but some might. H2TP lets you reclaim compatibility and move back to PHP if, in the future, Hack ceases to be to your liking, PHP7 exceeds everyone’s expectations and surpasses HHVM in speed, quality and/or features, or who knows what else.

Facebook发布了H2TP的实验版本 ,该编译器可用于将Hack代码转换为PHP5代码。 我们之前已经提到过 ,您可以在HHVM上轻松运行PHP5代码。 但是,如果您编写Hack代码,则该代码将无法在Zend Engine上运行,并且与旧PHP不兼容。 就我个人而言,我根本不认为这是一个问题,但是有些可能。 如果将来Hack不再像您一样喜欢PHP7,PHP7超出了所有人的期望,并且在速度,质量和/或功能方面超过了HHVM,或者其他人知道什么,H2TP允许您收回兼容性并返回到PHP。

HHVM 3.4.0 (HHVM 3.4.0)

A new version is out. While not an LTS version like 3.3.0, it still sports some powerful upgrades, including but not limited to support for abstract final classes in Hack, Hack reflection support for first-class enums, support for Closure::bind() and more. You can find out all the details in the official blog post.

新版本发布了。 尽管它不像3.3.0这样的LTS版本,但它仍进行了一些强大的升级,包括但不限于对Hack中抽象的最终类的支持,对一流枚举的Hack反射支持,对Closure :: bind()的支持等等。 您可以在官方博客文章中找到所有详细信息。

WP Engine和Box go HHVM (WP Engine and Box go HHVM)

Companies starting to provide HHVM hosting? Madness! :) While I don’t find WP Engine’s setup story very impressive – it’s a simple failover which, when HHVM fails spins up PHP and makes it take over until HHVM can take the reins again – I still applaud those companies for taking the plunge and diving head first into the world of modern PHP. We need more brave endeavors like these if we’re to break away from the old “PHP go home, you’re drunk” adage. Are you using WP Engine? Have you felt the effects? Let us know, we’d love to go in-depth! You can read the rest in the PR from Box and the PR from WP Engine.

公司开始提供HHVM托管? 疯狂 ! :)虽然我觉得WP Engine的设置过程并不令人印象深刻–这是一个简单的故障转移,当HHVM失败启动PHP并使其接管直到HHVM可以重新接管时–我仍然为那些公司的投入感到鼓舞,并为此表示赞赏。潜水首先进入现代PHP的世界。 如果我们要摆脱旧的“ PHP回家,您喝醉了”的格言,我们需要采取更多此类勇敢的努力。 您在使用WP Engine吗? 您感觉到了效果吗? 让我们知道,我们希望深入! 您可以从Box的PR和WP Engine的PR中阅读其余内容。

Propel2的重大变化 (Propel2 Major Changes)

For those of you unfamiliar with the project, Propel 2 is a very popular Active Record ORM. It’s wholly independent and indeed appeared before Doctrine ever set foot on the stage, but stagnated in development somewhat while Doctrine flourished. From version 2 onwards, it’s been in active development, and now, we have some huge changes looming on the horizon. Among other things, the new Propel will be even more modular, supporting NoSQL and even PHPCR. You can see the above PR for details, it’s far more comprehensive than anything I could hope to abbreviate here.

对于那些不熟悉该项目的人,Propel 2是一个非常流行的Active Record ORM。 它是完全独立的,确实在教义涉足舞台之前就出现过,但是在教义蓬勃发展的同时,发展却停滞不前。 从版本2开始,它一直在积极开发中,而现在,我们即将出现一些巨大的变化 。 除其他外,新的Propel将更加模块化,支持NoSQL甚至PHPCR。 您可以查看上面的PR以获得详细信息,它比我希望在这里缩写的内容要全面得多。

Have you implemented Propel2 in any of your projects? We’d like to publish your writings on it. Get in touch!

您是否在任何项目中实现了Propel2? 我们想发表您的著作。 保持联系!

PHP-FIG提出了面向安全性的PSR (Security Oriented PSR Proposed to PHP-FIG)

Found via Pádraic Brady’s post, it appears a new proposal found its way into the chambers of PHP-FIG. You can read Pádraic’s post for details, but in a nutshell, the proposal as set forth by Lukas Kahwe Smith would make sure all discovered security vulnerabilities would be dealt with in the exact same manner. This doesn’t target PHP as a language, but in fact everything PHP related – packages, libraries, frameworks – any of those suffering from a newly discovered vulnerability (see SQL injection shenanigans of Drupal 7) and respecting the standard as defined and accepted by PHP-FIG would need to approach the problem swiftly and accurately. I think this is a good idea, and trivially easy to implement – let’s make it happen.

通过PádraicBrady的帖子找到的,似乎是一条新提议被发现进入了PHP-FIG的会议厅。 您可以阅读Pádraic的文章以了解详细信息,但简而言之,Lukas Kahwe Smith提出的建议将确保以完全相同的方式处理所有发现的安全漏洞。 这并不是将PHP作为一种语言,而是实际上所有与PHP相关的东西-包,库,框架-遭受新发现漏洞的任何人(请参阅Drupal 7SQL注入技巧 )并遵守标准所定义和接受的标准PHP-FIG将需要快速而准确地解决该问题。 我认为这是个好主意,并且易于实现–让我们实现它。

适用于Laravel的Oauth2服务器 (Oauth2 Server for Laravel)

Based on the recently released version 3.0 of PhpLeague’s Oauth Server, the Laravel version of it got an upgrade, too. It is now easier than ever to get a working Oauth2 server up and running for you apps in Laravel. With the extensive wiki and a lot of available documentation (and some tutorials coming on our end), you’ll be up and authing in no time. Ever wanted to make single sign-on a possibility for your apps? Now you can.

基于最近发布的PhpLeague Oauth Server 3.0版本,其Laravel版本也进行了升级 。 现在,在Laravel中为您的应用程序启动并运行可运行的Oauth2服务器变得比以往任何时候都容易。 拥有大量的Wiki和大量可用的文档(以及一些有关我们的教程),您将立即启动并进行身份验证。 是否曾经想过让您的应用程序实现单点登录? 现在你可以。

Symfony (Symfony)

Symfony has been on fire for the past few months – what with their developer experience initiative aimed at making Symfony more approachable to newcomers and the flurry of updates the framework has been seeing week-in week-out, it’s safe to say the framework is heading in a good direction. Symfony brings us three important updates:

在过去的几个月中,Symfony一直处于火热之中–他们的开发人员经验计划旨在使Symfony对新手更易于接近,并且该框架一周又一周地进行着大量更新,可以肯定地说框架正在发展朝着一个好的方向发展。 Symfony为我们带来了三个重要更新:

5.5要求和3.​​0的路线图 (5.5 requirement and Roadmap for 3.0)

In this blog post, Fabien puts the public at ease by explaining the 3.0 release won’t break everyone’s Symfony apps, lists some upcoming changes, and talks about the next minimum required PHP version for Symfony 3.0. In a recent poll, version 5.5. was the most requested one – which is incredibly promising of the PHP community and shows how far we’ve come. It is my hope that by the time Symfony 3.0 is released (currently aimed for November 2015) a new poll will decide we should go with 5.6 instead. Around that time, PHP 7 will be out and about at least in some capacity, and minimizing the differences between required PHP versions should be a top priority – 5.5 to 7 will be a much bigger rift than 5.6 to 7.

在这篇博客文章中 ,Fabien解释了3.0版本不会破坏每个人的Symfony应用,并列出了一些即将进行的更改,并讨论了Symfony 3.0的下一个最低PHP版本,从而使公众放心。 在最近的调查中,版本5.5。 是最需要的程序,这对PHP社区来说是非常令人鼓舞的,它显示了我们的发展方向。 我希望在Symfony 3.0发行时(目前针对2015年11月),新的民意测验将决定我们应该改用5.6。 大约在那个时候,PHP 7将会淘汰,至少会以某种能力出现,并且最大程度地减少所需PHP版本之间的差异应该是当务之急– 5.5到7比5.6到7 要大得多。

2.6 B2 (2.6 B2)

2.6 beta 2 is out, and is the final beta for 2.6 before the final release. As per their blog post, this is mostly a bugfix release. You can try this version out before committing to the final one by switching to the appropriate 2.6 b2 branch.

2.6 beta 2已经发布,并且是最终版本之前2.6的最终beta。 根据他们的博客文章 ,这主要是一个错误修正版本。 您可以通过切换到相应的2.6 b2分支来尝试使用此版本,然后再提交最终版本。

Edit: Symfony 2.6 has been released in the few days since this post’s publication, yay!

编辑:Symfony 2.6已在此文章发布后的几天内发布,是的!

Symfony市场 (Symfony Marketplace)

The SensioLabs team introduced Symfony Marketplace – a hub of all Symfony projects, spinoffs and uses. In addition to the “built with Symfony” section, the marketplace will also feature the best tools to develop in Symfony with, and will mention the most proven Symfony-compatible hosting providers – though how much of this mentioning is actually paid remains to be seen.

SensioLabs团队介绍了Symfony Marketplace ,它是所有Symfony项目,衍生产品和使用的枢纽。 除了“使用Symfony构建”部分之外,该市场还将提供与Symfony一起开发的最佳工具,并将提及最成熟的与Symfony兼容的托管服务提供商-尽管实际支付的费用有待观察。

If you’ve developed something impressive with or for Symfony, go check the marketplace out and see if you can’t get yourself listed. Exposure guaranteed!

如果你开发的东西印象深刻的 还是 Symfony的,去看看市场,看看如果你不能让自己上市。 保证曝光!

PHP CS Fixer 1.0 (PHP CS Fixer 1.0)

If you care about standards (and you should) and keep your code clean and maintainable whether you’re a solo flyer or a team member, you most likely use some code inspection tool like CodeSniffer to get the IDE to automatically show you the mistakes you’ve made. CS Fixer is a tool that automates code cleanliness by taking it a step further – it runs through a given set of rules and automatically rewrites your code to make it compatible with them. Most IDEs already support standards-based rewriting to some degree, but CS fixer is a universal tool which shares many standards used across many projects, making you automatically compatible with the vast majority of the professional PHP development world.

如果您关心标准(并且应该这样做),并且无论您是单独的传单还是团队成员,都要保持代码的清洁和可维护性,那么您很可能会使用诸如CodeSniffer之类的代码检查工具来使IDE自动向您显示错误信息已经做了。 CS Fixer是一种工具,可通过进一步执行代码清洁操作来自动执行-它运行一组给定规则,并自动重写代码以使其与它们兼容。 大多数IDE在某种程度上已经支持基于标准的重写,但是CS fixer是一种通用工具,它共享许多项目中使用的许多标准,从而使您自动与绝大多数专业PHP开发世界兼容。

CS Fixer has recently been rewritten on top of a parser based on PHP tokens, and is now better than ever with more standards, rules and features than before. This rewrite prompted Fabien Potencier to tag it as a 1.0 release. Have a look at that blog post to learn more, or install CS Fixer into your IDE today.

CS Fixer最近在基于PHP令牌的解析器上进行了重写,并且比以前拥有更多的标准,规则和功能,因此比以往任何时候都更好。 重写提示Fabien Potencier将其标记为1.0版本 。 查看该博客文章以了解更多信息,或立即将CS Fixer安装到您的IDE中 。

AWS SDK文档的V3 (V3 of AWS SDK docs)

Version 3 of the PHP SDK AWS docs are now available online at this location. If you’ve never used AWS with PHP, now’s the time – it’s better than ever and fully documented for API version 3, so you can bring your apps to the next level of scalability and performance.

现在可以在此位置在线获得PHP SDK AWS文档的第3版。 如果您从未将AWS与PHP结合使用,现在是时候了–它比以往任何时候都更好,并且针对API版本3进行了全面记录,因此您可以将应用程序提升到可扩展性和性能的新高度。

If you’ve done any AWS PHP implementations you’d like to tell us about, let us know, we’d love to publish your stories. The more open source, the better!

如果您想向我们介绍任何AWS PHP实现,请告诉我们,我们很乐意发布您的故事。 开源越多越好!

Phalconf (Phalconf)

With Phalcon’s ever rising popularity, there are now whispers of a Phalcon Conference. While the location and time are still up for debate, several Phalcon fans (Phans?) have banded together to inquire about the level of the public’s interest. If you can spare a minute or two, please fill out the interest level survey they’ve put together at https://bit.ly/phalconf. Even if you’re completely unfamiliar with Phalcon, please take the survey – it’s a pretty safe bet that the conference will host a lot of introductory talks to both Phalcon and Zephir, and will gently guide you into understanding both – just make sure to vote for a two-track conference then, so one track can focus on beginner topics, while the other will host advanced talks.

随着Phalcon的日益普及,现在有Phalcon会议的耳语。 尽管地点和时间尚有待商debate,但一些Phalcon粉丝(Phans?)聚集在一起,询问公众的兴趣水平。 如果您可以花一两分钟的时间,请填写他们在https://bit.ly/phalconf上汇总的兴趣水平调查。 即使您完全不熟悉Phalcon,也请参加调查-可以肯定的是,该会议将举办许多有关Phalcon和Zephir的介绍性演讲,并会引导您逐步理解两者-请务必投票对于两轨会议,那么一条轨可以专注于初学者主题,而另一轨将主持高级演讲。

Laravel 5.0延迟 (Laravel 5.0 delayed)

In a cryptic but honest blog post Taylor Otwell has delayed the release of Laravel 5.0 for two months, until January. Those of you using 5.0 features today are probably okay, but my gut tells me some major changes are afoot and that there might be a paradigm shift in how some things are done in the Laravel-powered development world.

Taylor Otwell在一个神秘却诚实的博客文章中将Laravel 5.0的发布推迟了两个月,直到一月份。 那些今天使用5.0功能的人可能还可以,但是我的直觉告诉我即将进行一些重大更改,并且在Laravel驱动的开发世界中,某些事情的完成方式可能会发生范式转变。

Are you using some new 5.0 features already? Want to write about it? Let us know!

您已经在使用一些新的5.0功能吗? 想写吗? 让我们知道!

(Lock)

A new ACL package for PHP has popped up as noted by Dries Vints in the comments below. ACL is a big part of any serious PHP application, and having a well built reusable component for it is priceless in times of superbloated frameworks and 10k+ file count packages. While it’s still in alpha stage, it already shows great promise and my personal hope is that the author will move towards transitioning it to PhpLeague membership rather than its own organization.

正如Dries Vints在以下评论中指出的那样,弹出了一个新PHP ACL软件包 。 ACL是任何严肃PHP应用程序的重要组成部分,并且拥有完善的可重用组件,因此在超级框架和10k +文件计数包的时代,ACL是无价的。 虽然它仍处于Alpha阶段,但它已经显示出了很大的希望,而我个人的希望是,作者将朝着将其转变为PhpLeague成员资格而非其自身组织的方向发展。

We’ll be taking a more in depth look at Lock soon.

我们将在不久的将来更深入地研究Lock。

Bldr (Bldr)

Bldr is a task runner for PHP without external dependencies. No need for Java, NPM and other unstable software on your machine – PHP and some accompanying packages will do the job quite nicely.

Bldr是PHP的任务运行程序,没有外部依赖关系。 您的计算机上不需要Java,NPM和其他不稳定的软件-PHP和一些附带的软件包将很好地完成此工作。

We’ll be taking a more in depth look at using Bldr very soon.

我们将很快对使用Bldr进行更深入的研究。

结语 (Wrapping up)

That’s it for the past month or so. Did I miss anything important? Let me know in the comments below!

过去一个月左右就是这样。 我错过了重要的事情吗? 在下面的评论中让我知道!

翻译自: https://www.sitepoint.com/php-news-may-missed-october-november-2014/

2019 错过春招

相关资源:2019春招季人才市场趋势报告-脉脉-2019030.pdf
最新回复(0)