• How do I use one or more of these composer packages?
    • Navigate to your project's folder within your terminal and run the following:

      composer config repositories.UCI_OIT composer https://packagist.oit.uci.edu/

      Once you have the config in your composer.json file, you may require or update that package like any other public composer package:

      For example, composer require sait/laravel-ldap

  • If it is not able to authenticate while the composer is installing, how do I resolve this error?
    • This error is happening because these packages are hosted on our OIT GitHub. There are 2 ways to solve this:

      1. Change your .git/config to use the SSH Version of the git repo URL.
      2.                                 # URL Version
                                        [remote "origin"]
                                        url = https://github.oit.uci.edu/sait/repo_link_here.git
        
                                        # SSH Version
                                        [remote "origin"]
                                        url = git@github.oit.uci.edu:sait/repo_link_here.git
                                    
      3. Add a GitHub personal token to your composer file. (Only read access to repos is necessary)
      4.                                 "config": {
                                            ...,
                                            "github-oauth":{"github.oit.uci.edu":"[[TOKEN_HERE]]"}
                                        },
                                    
  • How do I get a package I built on to this website?