Composite bonding is a single session treatment option which is great to correct smaller imperfections, chips, cracks and minor spacing between the teeth.
Porcelain veneers on the other hand are lab made ultra thin sheets of ceramic material which are shaped to fit onto the teeth. They usually require some removal of natural tooth structure to create enough space for the veneer to attach to the tooth. They are normally recommended for larger imperfections of the teeth and as they are lab made, are more costly than composite bonding.
For a side-by-side comparison, read composite bonding vs porcelain veneers.