mac执行composer报dyld错误的解决方法

报错:

dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib

  Referenced from: /usr/local/bin/php

  Reason: image not found

解决:

brew install libpng