You can pull in a local project (e.g. for testing changes) using either vcs or path repository types in Composer:
Put the path to the local project VCS (Git, Hg, SVN etc) in the url field.
See: composer_vcs.json
Put the relative path to the local project in the url field.
See: composer_path.json
Prefix the branch name you want to use with dev-, so my-branch becomes dev-my-branch.
If you want your branch to behave like specific version, you can also use the as keyword: dev-my-branch as 13.x-dev
Install a Local Package with Composer
Using a Branch as a Dependency in Composer
Thanks a lot!!!, This was helpful.