相信不少程序都会用到用户中心,像是其他比如图片处理,MVC框架等等都有比较成熟的解决方案或框架。
对于用户中心有没有类似的框架或类库之类,这样就不用每个项目都去搞注册,用户资料,找回密码,验证等等重复的东西,高级点的比如用户个人中心,用户之间互相发短消息等,都是很费时间也不一定做的完善的,并且如果是开发一些内容为主的网站,用户这块也不是重点。
所以这个需求应该不少,对于PHP不是太深入,不知道PHP会不会像Objc一样,在github有超多现成的开源工具类呢?
注,除了UCenter,那个有点太大型,整个就是个SNS,不太适合小项目
回复内容:
相信不少程序都会用到用户中心,像是其他比如图片处理,MVC框架等等都有比较成熟的解决方案或框架。
对于用户中心有没有类似的框架或类库之类,这样就不用每个项目都去搞注册,用户资料,找回密码,验证等等重复的东西,高级点的比如用户个人中心,用户之间互相发短消息等,都是很费时间也不一定做的完善的,并且如果是开发一些内容为主的网站,用户这块也不是重点。
所以这个需求应该不少,对于PHP不是太深入,不知道PHP会不会像Objc一样,在github有超多现成的开源工具类呢?
注,除了UCenter,那个有点太大型,整个就是个SNS,不太适合小项目
我怎么想怎么也不觉得 UCenter 是 SNS ... 你看的是 UCenter Home 吧 ...
成熟开源 ... 除了 UCenter 没有其他选择了应该 ...
看看symfony2的有个FOSUserBundle,有了用户中心的基本功能,剩下的需要自己按照需求扩展。
推荐关注一下symfony2和composer里面上千个bundle,总有一款适合你。
symfony2的学习曲线很陡,适合有一定基础,想了解世界上其他php开发者是如何工作的人去学习,它有详尽的文档,活跃的社区,核心开发团队更新非常迅速,这点很重要啊。
它从其它web开发语言(python,ROR)中借鉴了很多东西, 除了框架本身,还需要学习twig(它推荐的模板引擎,很赞), Doctrine2(数据库ORM),CSS的sass, Js的框架等东西,需要的知识面比较广。
可以看一下OpenCenter。包含了一些注册登录的功能,是15年新出的开源用户中心系统。永久开源免费的。

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

TomakePHPapplicationsfaster,followthesesteps:1)UseOpcodeCachinglikeOPcachetostoreprecompiledscriptbytecode.2)MinimizeDatabaseQueriesbyusingquerycachingandefficientindexing.3)LeveragePHP7 Featuresforbettercodeefficiency.4)ImplementCachingStrategiessuc

ToimprovePHPapplicationspeed,followthesesteps:1)EnableopcodecachingwithAPCutoreducescriptexecutiontime.2)ImplementdatabasequerycachingusingPDOtominimizedatabasehits.3)UseHTTP/2tomultiplexrequestsandreduceconnectionoverhead.4)Limitsessionusagebyclosin

Dependency injection (DI) significantly improves the testability of PHP code by explicitly transitive dependencies. 1) DI decoupling classes and specific implementations make testing and maintenance more flexible. 2) Among the three types, the constructor injects explicit expression dependencies to keep the state consistent. 3) Use DI containers to manage complex dependencies to improve code quality and development efficiency.

DatabasequeryoptimizationinPHPinvolvesseveralstrategiestoenhanceperformance.1)Selectonlynecessarycolumnstoreducedatatransfer.2)Useindexingtospeedupdataretrieval.3)Implementquerycachingtostoreresultsoffrequentqueries.4)Utilizepreparedstatementsforeffi


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver CS6
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
