Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7737379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:58:53+00:00 2026-06-01T07:58:53+00:00

Are there any Guice like or similar dependency injection frameworks in PHP? If not

  • 0

Are there any Guice like or similar dependency injection frameworks in PHP? If not are there any good dependency injection frameworks in PHP?

I have to implement same code in PHP what I have implemented in Java and I use Guice in my Java project. So it would be easier to implement PHP version, if it used similar framework.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:58:54+00:00Added an answer on June 1, 2026 at 7:58 am

    (Posting my comment as a response)

    Have a look at my clone of Guice named Sharbat (means juice). The API is quite the same as Guice’s.

    It has pretty much everything you need:

    • Constructor injection (does not require @Inject annotation)
    • Field injection (regardless of visibility, using @Inject(FooBar))
    • Method injection (regardless of visibility, requires @Inject annotation)
    • Provider injection (for fields via @InjectProvider(T=FooBar), for methods via @Provider(T=FooBar, param=fooBarProvider)
    • Scopes (possible to implement a custom one)
    • AOP (method interceptors)
    • Circular dependencies

    See the readme file for example usage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been searching since a week for that is there any library like
I have started using Guice to do some dependency injection on a project, primarily
I'm using guice-persist and I would like to know if there is any to
Is there any quick guide/reference to list all the countries and its states/provinces? Like
I am using VS2005 C#. I would like to know if there is any
Is there any free script in PHP/MYSQL or in ASP.NET/SQL Server for comment reply
I'd like to use a dependency injection framework . During my evaluation I came
is there any quick guide to understand basic concept of computer networking like layers
I would like to inject code in an android application at runtime. I have
I am trying to implement a similar effect like the iPhone-alike sliding header in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.